473,395 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

building rpms with distutils

I've searched in vain for ages on the web about this problem. I'm trying
to generate an rpm for the "numarray" python package. The catch is the
system is a RedHat 7.3 system, so I need to use the python2 executable
(the package is python-2 only, and I don't write python-1 code) rather
than the ancient python executable.

Obviously
python ./setup.py bdist_rpm
fails, but so does
python2 ./setup.py bdist_rpm
when it tries to build the rpm. The spec file generated mentions the
"python" executable rather than "python2", so rpm tries to run setup.py
with python rather than python2.

Is there an easy way to fix this (other than updating my distribution)?

Thanks

Jeremy
Jul 18 '05 #1
1 1409
On Sun, Aug 24, 2003 at 04:38:30PM +0100, Jeremy Sanders wrote:
when it tries to build the rpm. The spec file generated mentions the
"python" executable rather than "python2", so rpm tries to run setup.py
with python rather than python2.


According to "python2 setup.py bdist_rpm --help":

--python path to Python interpreter to hard-code in the .spec
file (default: "python")

So, "python2 setup.py bdist_rpm --python=python2"?

Sean
--
Find out just what any people will quietly submit to and you have the exact
measure of the injustice and wrong which will be imposed on them. -- T.J.
Sean Reifschneider, Member of Technical Staff <ja**@tummy.com>
tummy.com, ltd. - Linux Consulting since 1995. Qmail, Python, SysAdmin

Jul 18 '05 #2

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

Similar topics

1
by: Thomas Guettler | last post by:
Hi! I need to build a Python2.3.2 RPM for Suse7.3. I looked at http://www.python.org/2.3.2/rpms.html and downloaded python2.3-2.3.2-1pydotorg.src.rpm. I unpacked to src.rpm like this: ...
0
by: Steve | last post by:
Hi list, At work, we would shortly be starting a new project that would be almost entirely (90%) written in python. Our development as well as deployment would happen on linux (fedora and RHEL to...
0
by: Math | last post by:
Hello python people, Can you help me out please. I get the folllowing Error while trying to build a installer with the Distutils module:...
0
by: juncus | last post by:
Hi, Perhaps this is not the right forum to post this, but I am having trouble installing pyParallel. When I try to do the usual "python setup.py build" or "python setup.py install", I get the...
22
by: James Stroud | last post by:
Hello All, This is annoying. I am trying to build scipy right now but every .so file requires my adding "-lpython2.5 -lpthread -lm -lutil -ldl -shared" to the ld flags. Main Question: When...
4
by: vedrandekovic | last post by:
Hi, I have already install Microsoft visual studio .NET 2003 and MinGw, when I try to build a extension: python my_extension_setup.py build ( or install ) , I get an error: LINK : fatal...
0
by: cesar.ortiz | last post by:
Hi all, I am trying to generate an distribution with distutils, using in the setup() invocation the parameters 'packages' and 'data_files'. If I use bdist, the tar.gz contains all the files, but...
15
by: kyosohma | last post by:
Hi, I am trying to get a small group of volunteers together to create Windows binaries for any Python extension developer that needs them, much like the package/extension builders who volunteer...
1
by: Wilbert Berendsen | last post by:
Hi all, I want to convert a python project from Makefiles to distutils. Currently the makefiles perform some tasks like building a PNG icon from a SVN file etc. How can I add such commands...
1
by: Christopher | last post by:
Hello, A tool that we use needs to be ported to Itanium. It wsa written for Python 2.5.2, and so I was happily using the Itanium version of that release. However, as I have gotten deeper into...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.