[SciPy-dev] Always including lapack_lite and blas_lite in sdist

Fernando Perez Fernando.Perez at colorado.edu
Sun Oct 2 01:14:16 CDT 2005

Travis Oliphant wrote:
> Eric Firing noticed a problem with the newcore setup.py script in that 
> the blas_lite and lapack_lite files are missing.    This is because, on 
> my system, I used blas and so didn't compile those.
> I'm wondering how we can detect in the setup.py file that an sdist 
> command has been issued and so include the blas_lite and lapack_lite 
> files even if somebody has atlas installed.
> Does somebody know how to tell what command was run when we are inside a 
> configuration?

In most cases, a test like

if 'sdist' in sys.argv:

should work, I would think.  Unless something is actively rewriting sys.argv, 
even other scripts called by setup.py should see this.  Or am I missing 
something more subtle?



More information about the Scipy-dev mailing list