473,788 Members | 3,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

2.4beta1 distutil problem?

Hi,

I'd like to install SCons (http://www.scons.org) on my Linux box.
There, the cvs version of Python is running.
Doing as recommended in the README file

export SCONS_LIB_DIR=` pwd`/src/engine
python src/script/scons.py build/scons

I get after some time
/usr/local/bin/python build/scons/setup.py bdist_wininst
running bdist_wininst
running build
running build_py
running build_scripts
Traceback (most recent call last):
File "/Obj/OBJ/Python/SCons/scons/build/scons/setup.py", line 221, in ?
apply(distutils .core.setup, (), arguments)
File "/usr/local/lib/python2.4/distutils/core.py", line 149, in setup
dist.run_comman ds()
File "/usr/local/lib/python2.4/distutils/dist.py", line 946, in
run_commands
self.run_comman d(cmd)
File "/usr/local/lib/python2.4/distutils/dist.py", line 966, in
run_command
cmd_obj.run()
File "/usr/local/lib/python2.4/distutils/command/bdist_wininst.p y",
line 127, in run
assert self.skip_build , "Should have already checked this"
AssertionError: Should have already checked this
scons: *** [build/scons/dist/scons-0.96.win32.exe] Error 1
>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>> ^^^^^^^^^

Remember this is a build on a Linux machine.
This install procedure is claimed to work with Python 2.3.x .

Thanks for any hints,
Helmut.
--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
Jul 18 '05 #1
2 1662
Helmut Jarausch <ja******@skyne t.be> writes:
Hi,

I'd like to install SCons (http://www.scons.org) on my Linux box.
There, the cvs version of Python is running.
Doing as recommended in the README file

export SCONS_LIB_DIR=` pwd`/src/engine
python src/script/scons.py build/scons

I get after some time
/usr/local/bin/python build/scons/setup.py bdist_wininst
running bdist_wininst
running build
running build_py
running build_scripts
Traceback (most recent call last):
File "/Obj/OBJ/Python/SCons/scons/build/scons/setup.py", line 221, in ?
apply(distutils .core.setup, (), arguments)
File "/usr/local/lib/python2.4/distutils/core.py", line 149, in setup
dist.run_comman ds()
File "/usr/local/lib/python2.4/distutils/dist.py", line 946, in
run_commands
self.run_comman d(cmd)
File "/usr/local/lib/python2.4/distutils/dist.py", line 966, in
run_command
cmd_obj.run()
File "/usr/local/lib/python2.4/distutils/command/bdist_wininst.p y",
line 127, in run
assert self.skip_build , "Should have already checked this"
AssertionError: Should have already checked this
scons: *** [build/scons/dist/scons-0.96.win32.exe] Error 1
>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>> ^^^^^^^^^

Remember this is a build on a Linux machine.
This install procedure is claimed to work with Python 2.3.x .


Seems like a bug to me. And it has nothing to do with Linux or not - it
is triggered if the distribution doesn't have any extension modules.

A quick fix is this patch, at least it works for me:

Thomas

Index: bdist_wininst.p y
=============== =============== =============== =============== =======
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_wininst.p y,v
retrieving revision 1.54
diff -c -r1.54 bdist_wininst.p y
*** bdist_wininst.p y 17 Aug 2004 10:15:07 -0000 1.54
--- bdist_wininst.p y 27 Oct 2004 15:11:11 -0000
***************
*** 116,135 ****
install_lib.com pile = 0
install_lib.opt imize = 0

! # If we are building an installer for a Python version other
! # than the one we are currently running, then we need to ensure
! # our build_lib reflects the other Python version rather than ours.
! # Note that for target_version! =sys.version, we must have skipped the
! # build step, so there is no issue with enforcing the build of this
! # version.
! target_version = self.target_ver sion
! if not target_version:
! assert self.skip_build , "Should have already checked this"
! target_version = sys.version[0:3]
! plat_specifier = ".%s-%s" % (get_platform() , target_version)
! build = self.get_finali zed_command('bu ild')
! build.build_lib = os.path.join(bu ild.build_base,
! 'lib' + plat_specifier)

# Use a custom scheme for the zip-file, because we have to decide
# at installation time which scheme to use.
--- 116,136 ----
install_lib.com pile = 0
install_lib.opt imize = 0

! if self.distributi on.has_ext_modu les():
! # If we are building an installer for a Python version other
! # than the one we are currently running, then we need to ensure
! # our build_lib reflects the other Python version rather than ours.
! # Note that for target_version! =sys.version, we must have skipped the
! # build step, so there is no issue with enforcing the build of this
! # version.
! target_version = self.target_ver sion
! if not target_version:
! assert self.skip_build , "Should have already checked this"
! target_version = sys.version[0:3]
! plat_specifier = ".%s-%s" % (get_platform() , target_version)
! build = self.get_finali zed_command('bu ild')
! build.build_lib = os.path.join(bu ild.build_base,
! 'lib' + plat_specifier)

# Use a custom scheme for the zip-file, because we have to decide
# at installation time which scheme to use.
Jul 18 '05 #2
Many thanks,
hopefully it makes it into the CVS,

Helmut.
Thomas Heller wrote:
Seems like a bug to me. And it has nothing to do with Linux or not - it
is triggered if the distribution doesn't have any extension modules.

A quick fix is this patch, at least it works for me:

Thomas

Index: bdist_wininst.p y
=============== =============== =============== =============== =======
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_wininst.p y,v
retrieving revision 1.54
diff -c -r1.54 bdist_wininst.p y
*** bdist_wininst.p y 17 Aug 2004 10:15:07 -0000 1.54
--- bdist_wininst.p y 27 Oct 2004 15:11:11 -0000
***************
*** 116,135 ****
install_lib.com pile = 0
install_lib.opt imize = 0

! # If we are building an installer for a Python version other
! # than the one we are currently running, then we need to ensure
! # our build_lib reflects the other Python version rather than ours.
! # Note that for target_version! =sys.version, we must have skipped the
! # build step, so there is no issue with enforcing the build of this
! # version.
! target_version = self.target_ver sion
! if not target_version:
! assert self.skip_build , "Should have already checked this"
! target_version = sys.version[0:3]
! plat_specifier = ".%s-%s" % (get_platform() , target_version)
! build = self.get_finali zed_command('bu ild')
! build.build_lib = os.path.join(bu ild.build_base,
! 'lib' + plat_specifier)

# Use a custom scheme for the zip-file, because we have to decide
# at installation time which scheme to use.
--- 116,136 ----
install_lib.com pile = 0
install_lib.opt imize = 0

! if self.distributi on.has_ext_modu les():
! # If we are building an installer for a Python version other
! # than the one we are currently running, then we need to ensure
! # our build_lib reflects the other Python version rather than ours.
! # Note that for target_version! =sys.version, we must have skipped the
! # build step, so there is no issue with enforcing the build of this
! # version.
! target_version = self.target_ver sion
! if not target_version:
! assert self.skip_build , "Should have already checked this"
! target_version = sys.version[0:3]
! plat_specifier = ".%s-%s" % (get_platform() , target_version)
! build = self.get_finali zed_command('bu ild')
! build.build_lib = os.path.join(bu ild.build_base,
! 'lib' + plat_specifier)

# Use a custom scheme for the zip-file, because we have to decide
# at installation time which scheme to use.

--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1666
by: Holger Joukl | last post by:
Hi, what version of python are you using? I got the same error when invoking a customized, 2-year-old version of distutils with python 2.3.3 (instead of 1.5.2, as before). Reason is code in dist.py, using dir() to look up the attributes of a class instance. But dir() nowadays also returns the class methods, __doc__ etc. Changing this in the old distutils/dist.py made it work for me, again (line
4
2279
by: Jesper Olsen | last post by:
Hi, I have a C-extention build with distutils that I would like to debug. How can I specify to distuils to pass option "-g" and not "-O2" along to the compiler (gcc)? Jesper
11
3762
by: Kostatus | last post by:
I have a virtual function in a base class, which is then overwritten by a function of the same name in a publically derived class. When I call the function using a pointer to the derived class (ClassB* b; b->func(); ) the base-class function is called instead of the new function in the derived class. All other similar functions (virtual in the base class and overwritten in the the derived class) work fine, it's just this one function. ...
117
7270
by: Peter Olcott | last post by:
www.halting-problem.com
0
1220
by: gatti | last post by:
When building a C extension, Distutils standard command 'install' calls the 'build' command before performing the installation (see Lib/distutils/command/install.py and build.py). Reusing the build command is the correct way to ensure the installation payload is ready, but the two commands support very different sets of user options and it is impossible to combine them: install validates them at the beginning, rejecting user options meant...
2
10654
by: Robert Creager | last post by:
I'm receiving the following error during startup: Aug 10 14:11:27 thunder postgres: LOG: failed to create socket: Address family not supported by protocol Aug 10 14:11:27 thunder postgres: LOG: database system was shut down at 2003-08-10 14:11:11 MDT Aug 10 14:11:27 thunder postgres: LOG: checkpoint record is at 4/E28389B4
6
1975
by: Jeff Davis | last post by:
After installing PostgreSQL 7.4 beta 1 from source, I decided to install the /contrib module tsearch2. I cd to the tsearch2 directory and typed "make", however I get an error that yy_current_buffer is an undeclared identifier in wordparser/parser.c (which is apparently autogenerated with flex from parser.l). I looked online, and it seemed like I was building the module in the right way. I also downloaded the latest development version,...
18
6177
by: Ian Stanley | last post by:
Hi, Continuing my strcat segmentation fault posting- I have a problem which occurs when appending two sting literals using strcat. I have tried to fix it by writing my own function that does the strcat (mystract). Program below. However this appears not to have fixed the problem and I don't know why it shouldn't ? Any further help as to what else I am doing wrong will be appreciated regards
28
5223
by: Jon Davis | last post by:
If I have a class with a virtual method, and a child class that overrides the virtual method, and then I create an instance of the child class AS A base class... BaseClass bc = new ChildClass(); .... and then call the virtual method, why is it that the base class's method is called instead of the overridden method? How do I fix this if I don't know at runtime what the child class is? I'm using Activator.CreateInstance() to load the...
0
167
by: Terry Reedy | last post by:
"??" <littlesweetmelon@gmail.comwrote in message news:cdb837ea0806050201l10a91b40xfa28d29de18fed30@mail.gmail.com... | When you use distutil to trigger compilation, a special *python script* | will check whether the default compiler is VS2003. If there is no | VS2003, this script will pop-up the error for incompatible compilers. | I really really wonder how to *force* distutil to use my specified compile. | eg: (pseudo) | python setup.py...
0
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5535
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.