Docutils relies on a few 3rd-party modules, and includes them as a
convenience. They are only to be installed if they're not already
present in a Python installation, so I have code in setup.py check for
them.
Distutils doesn't seem to be able to handle packages and individual
modules simultaneously. Distutils complains if I specify both
"packages" and "py_modules" in a single call. I got the script to
work by calling distutils.core.setup twice: first for the third-party
modules, then for …
[View More]the "docutils" packages
(http://docutils.sf.net/setup.py). Installation isn't so bad, but
doing "python setup.py sdist" creates 2 tarballs and feels very
kludgey. Does anyone know of a better way?
--
David Goodger http://starship.python.net/~goodger
Programmer/sysadmin for hire: http://starship.python.net/~goodger/cv
[View Less]
Is there a way to change the compiler arguments that are added by distutils.
NDEBUG is causing problems.
The distutils documentation suggests undef_macros, but this does not do
anything to help.
--
Enrico Ng <enrico(a)fnal.gov>
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 …
[View More]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(a)fnal.gov>
[View Less]