influence platorm during install -end user question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Hartmann

    #1

    influence platorm during install -end user question

    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.lin ux=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 <ascensiontech@ gmail.com> wrote:[color=blue]
    > 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
    >[/color]
  • Tim Roberts

    #2
    Re: influence platorm during install -end user question

    Peter Hartmann <ascensiontech@ gmail.com> wrote:
    [color=blue]
    >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.lin ux=i686-2.3
    >--install-lib=/usr/lib/python2.3/site-packages[/color]

    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, timr@probo.com
    Providenza & Boekelheide, Inc.

    Comment

    Working...