[Numpy-discussion] howto build numarray 0.4 ? file 'Src/_convmodule.c' does not exist

Todd Miller jmiller at stsci.edu
Thu Dec 19 06:37:11 EST 2002


Sebastian Haase wrote:

>Hi all,
>I downloaded numarray 0.4 about 5 minutes after I got the announce but 
>my naive 'python2.2 ./setup.py build'   gives this
>  
>
numarray-0.4 doesn't currently support a two step build process because 
code generation,  which is required,  doesn't occur unless the install 
command is present.   Unfortunately,  code generation *always* occurs 
when the install command is present,  which defeats the purpose of a 
seperate build.   This problem has been fixed in CVS by making code 
generation the result of an explicit setup.py switch (--gencode) which 
makes it possible to generate code during a build command.

One work-around is the following:

1. First generate code (as a non-priviledged user) using "python 
setup.py install".  Control-C as soon as the code starts to build.

2. Do  "python setup.py build"

3. Edit setup.py,  commenting out the 2 calls to os.system() in the 
function prepare().  This prevents codegeneration during the "real" install.

4. Do "python setup.py install" as root,  noting that no new code is 
generated, and everything is already built.

Todd

>haase at baboon:~/numarray-0.4: python2.2 ./setup.py build
>running build
>running build_py
>not copying Lib/ndarray.py (output up-to-date)
>not copying Lib/numtest.py (output up-to-date)
>not copying Lib/codegenerator.py (output up-to-date)
>not copying Lib/ufunc.py (output up-to-date)
>not copying Lib/testdata.py (output up-to-date)
>not copying Lib/numarray.py (output up-to-date)
>not copying Lib/ieeespecial.py (output up-to-date)
>not copying Lib/recarray.py (output up-to-date)
>not copying Lib/template.py (output up-to-date)
>not copying Lib/arrayprint.py (output up-to-date)
>not copying Lib/typeconv.py (output up-to-date)
>not copying Lib/numinclude.py (output up-to-date)
>not copying Lib/numarrayext.py (output up-to-date)
>not copying Lib/_ufunc.py (output up-to-date)
>not copying Lib/chararray.py (output up-to-date)
>not copying Lib/numtestall.py (output up-to-date)
>not copying Lib/numerictypes.py (output up-to-date)
>not copying Lib/memmap.py (output up-to-date)
>running build_ext
>building '_conv' extension
>error: file 'Src/_convmodule.c' does not exist
>
>What am I missing? I'm running Linux (debian woody) on i386.
>
>Thanks,
>Sebastian
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Microsoft Visual Studio.NET 
>comprehensive development tool, built to increase your 
>productivity. Try a free online hosted session at:
>http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
>_______________________________________________
>Numpy-discussion mailing list
>Numpy-discussion at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>  
>







More information about the NumPy-Discussion mailing list