From: Sebastian H. <ha...@ms...> - 2002-12-03 22:34:20
|
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 haase@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 |
From: <co...@ar...> - 2002-12-03 22:42:52
|
On Tue, Dec 03, 2002 at 02:34:06PM -0800, 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 > > haase@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/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. Looks like you have to run 'python2.2 ./setup.py install' instead. Looking at setup.py, something special is done when the target is 'install'. [I think this is a bad idea, as I like to build stuff as my user, and install as root. This requires me to build it as root.] -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/cookedm/ |co...@ph... |
From: Sebastian H. <ha...@ms...> - 2002-12-03 23:08:12
|
> On Tue, Dec 03, 2002 at 02:34:06PM -0800, 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 > > > > haase@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/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. > > Looks like you have to run 'python2.2 ./setup.py install' instead. Looking at > setup.py, something special is done when the target is 'install'. > > [I think this is a bad idea, as I like to build stuff as my user, and > install as root. This requires me to build it as root.] > Thanks for the hint - I'll try that. But I would consider that a bug, right? Sebastian |
From: Sebastian H. <ha...@ms...> - 2002-12-03 23:13:42
|
> On Tue, Dec 03, 2002 at 02:34:06PM -0800, 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 > > > > haase@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/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. > > Looks like you have to run 'python2.2 ./setup.py install' instead. Looking at > setup.py, something special is done when the target is 'install'. > > [I think this is a bad idea, as I like to build stuff as my user, and > install as root. This requires me to build it as root.] I just tried it (actually as user not root!!) and it runs through up to a "cannot create directory..." error. That's probably fine with me (for now) and I'm just setting PYTHONPATH ... Thanks again, Sebastian. |
From: Todd M. <jm...@st...> - 2002-12-19 14:36:30
|
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@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 >Num...@li... >https://lists.sourceforge.net/lists/listinfo/numpy-discussion > > |