By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,092 Members | 1,546 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,092 IT Pros & Developers. It's quick & easy.

influence platorm during install -end user question

P: n/a
How do I influence the platform type during install? Could you look
at this and tell me what I'm doing wrong? It's still using
information from get_platform instead of using my preference.

[root@k12linux pyosd-0.2.14]# python setup.py install
--install-purelib=lib.linux=i686-2.3
--install-lib=/usr/lib/python2.3/site-packages
running install
running build
running build_py
running build_ext
running install_lib
creating /usr/lib/python2.3/site-packages/pyosd
copying build/lib.linux-x86_64-2.3/pyosd/__init__.py ->
/usr/lib/python2.3/site-packages/pyosd
copying build/lib.linux-x86_64-2.3/pyosd/daemon.py ->
/usr/lib/python2.3/site-packages/pyosd
byte-compiling /usr/lib/python2.3/site-packages/pyosd/__init__.py to
__init__.pyc
byte-compiling /usr/lib/python2.3/site-packages/pyosd/daemon.py to daemon.pyc
On 9/15/05, Peter Hartmann <as***********@gmail.com> wrote:
Hello,
I could really use some help. I'm trying to install a python program
on centos4 x86_64. When I run 'python setup.py' it ends up in
/usr/lib64/python2.3/site-packages/ instead of
/usr/lib/python2.3/site-packages. It's a problem because the program
I'm trying to install is a dependency for something that is only
32bit. How can I specify a 32bit install? What I've tried so far:
When I try 'python setup.py build --build-lib
/usr/lib/python2.3/site-packages' and 'python setup.py install
--install-lib /usr/lib/python2.3/site-packages', it installs the 64bit
version into the 32bit library. Can anyone help me?

Thanks,
Peter

Sep 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Peter Hartmann <as***********@gmail.com> wrote:
How do I influence the platform type during install? Could you look
at this and tell me what I'm doing wrong? It's still using
information from get_platform instead of using my preference.

[root@k12linux pyosd-0.2.14]# python setup.py install
--install-purelib=lib.linux=i686-2.3
--install-lib=/usr/lib/python2.3/site-packages


The answer was given to you previously. To get Python to build a 32-bit
extension, you must use the 32-bit version of Python to run setup.py.
Otherwise, it's always going to use the 64-bit compiler.

Also note that there is a typo in your command line. You have an equals
sign in lib.linux=i686-2.3 where you should have a dash.
--
- Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Sep 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.