As far as I can tell, you cannot use the setup.py
to install system libraries. This mechanism is only thought for Python packages and their C extensions (which may define their own dependencies on C shared libraries, but this is not a solution here).
There are a number of solutions you may try but they are all outside the setup.py
file:
- create an installer (RPM, DEB or Windows package) where you define your dependency on the Atlas package. The system package manager (yum, apt-get, hmmm... nothing on Windows) is then in charge of finding the lib and installing it for your package.
- RPM: remember you get a
bdist_rpm
command from thesetup.py
directly - Windows: remember you also get a
bdist_msi
command from thesetup.py
- DEB: the stdeb package create a
bdist_deb
command
- RPM: remember you get a
- use buildout as build mechanism
- define Atlas as a
part
- use the
cmmi
recipe in order to download, configure, make and "make install" the Atlas tarball - set the
os.environ
ATLAS variable to theparts
directory of your buildout inside yoursetup.py
before you define your package'ssetup
.
- define Atlas as a
- simply list Atlas as a dependency of your package and let your users install it. Keep the
scipy
dependency within yoursetup.py
; that is the correct place, since it is a Python package.