From: Daniel B. <Ble...@ma...> - 2011-08-31 15:04:25
|
Hi Karl, Can't answer if this is off-topic or not, but I can share our work. Basically, I fudged a Disttools setup file, so it didn't build the library. You can use the bdist_egg target. Here's what it looks like: from setuptools import setup from distutils.sysconfig import get_python_lib setup( name = 'SimpleITK', version = '@SimpleITK_Major@.@SimpleITK_Minor@.@SimpleITK_Patch@', author = 'Insight Software Consortium', author_email = 'ins...@it...', package_dir = {'': '@SIMPLEITK_PYTHON_MODULE_DIR@'}, py_modules = ['SimpleITK',], data_files = [(get_python_lib(), ['@SIMPLEITK_BINARY_MODULE@'])], description = 'Simplified interface to the Insight Toolkit for image registration and segmentation', long_description = 'Provide an abstraction layer to ITK that enables developers\ and users to access the powerful features of the InsightToolkit in a more \ simplified manner.', classifiers=[ "License :: OSI Approved :: Apache Public License", "Programming Language :: Python", "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Topic :: Image Processing", ], license='Apache', keywords = 'ITK InsightToolkit segmentation registration image', url = 'http://simpleitk.org/', ) On 8/30/11 9:45 AM, "Karl Merkley" <ka...@el...> wrote: > I have a set of large libraries that I have wrapped with swig. I would now > like to package the results. I don't want to require that the user actually > build the libraries from source since the build setup is really tedious (ompi, > boost, lapack, blas, . . . you get the idea) and I would like to have the > advantages of using python eggs. However, I have been unable to figure out > how to just put the swig generated python files and the pre-compiled libraries > into an egg that actually works. Does anybody have a recipe for doing > something like this? If not, a pointer to the right list would be helpful. > > Thanks, > Karl > > > > > > > > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > Swig-user mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-user -- Daniel Blezek, PhD Medical Imaging Informatics Innovation Center P 127 or (77) 8 8886 T 507 538 8886 E ble...@ma... Mayo Clinic 200 First St. S.W. Harwick SL-44 Rochester, MN 55905 mayoclinic.org "It is more complicated than you think." -- RFC 1925 |