
I am trying a simple example: #/usr/bin/env python from distutils.core import setup, Extension from distutils.command.build_ext import build_ext setup(name="orbit", version="1.0", ext_package="orbit", ext_modules=[Extension("orbit", sources = ["Parallel.cc"])]) when I do "python setup.py sdist", the resulting tarfile only includes PKGINFO and setup.py, it does not include Parallel.cc. I tried this on a SunOS 5.7 using Python 2.2.2 (GCC 3.2.3) and it works fine. When I try it on a Linux 2.4.9 using Python 2.2.2 (GCC 3.2.3) it does not work. I do not know if this is related to the OS. I am thinking it may have something to do with different configure options, but I do not know. Any ideas? -- Enrico Ng <enrico@fnal.gov>

Enrico Ng wrote:
I am trying a simple example:
#/usr/bin/env python
from distutils.core import setup, Extension from distutils.command.build_ext import build_ext setup(name="orbit", version="1.0", ext_package="orbit", ext_modules=[Extension("orbit", sources = ["Parallel.cc"])])
when I do "python setup.py sdist", the resulting tarfile only includes PKGINFO and setup.py, it does not include Parallel.cc.
You need to create a file MANIFEST.in which includes all the files you wish to include in the tarball.
I tried this on a SunOS 5.7 using Python 2.2.2 (GCC 3.2.3) and it works fine. When I try it on a Linux 2.4.9 using Python 2.2.2 (GCC 3.2.3) it does not work. I do not know if this is related to the OS. I am thinking it may have something to do with different configure options, but I do not know.
Any ideas?
-- Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Jun 04 2003)
Python/Zope Products & Consulting ... http://www.egenix.com/ mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
EuroPython 2003, Charleroi, Belgium: 20 days left
participants (2)
-
Enrico Ng
-
M.-A. Lemburg