-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install 32bit python on 64bit system #66
Comments
I have never ran into similar problems. Though, the patches are welcome 👍 |
Hi, So I've played with it a bit and I have found the following to work: This works, but requires LD_LIBRARY_PATH to be set at run time:
This is better. It doesn't require LD_LIBRARY_PATH at all. There is, however, an issue with bash quoting or whatever which causes this to fail on stock pyenv. Echoing the command at line 541 in pyenv-build to a file and then executing that file solves this issue.
The following seems to work on OSX, somehow without any DYLIB paths or PYTHONHOME: Note that you need to brew install zlib, readline and sqlite with --universal, and the same bash quoting issue needs to be worked around here too.
It's probably worth determining how to add rpaths here too. All in all, changes to stock pyenv:
How would it be best to integrate this into pyenv? Custom definitions? A patch to add -32 (like --debug)? Is anyone else even interested in this? |
I am sorry i am new with pyenv. what i need to do for have python 2.6.9 in 32bit and also install python 3.3.0 32bits and 64 bits. i cant do it. thanks |
I have not yet completed implementing this. Waiting for some feedback from @yyuu. What os are you running?
|
i am running osx maverick |
or at less do you known how to install python 2.6.9 with pyenv but 32 bits |
@yyuu I looked at your branch. I think we need to add the rpath stuff and enable shared for this to really work properly. In most of the cases I've encountered, the reason for having a 32bit python in the first place is because some 32bit application wants to link against it. |
I pushed 43212f6 which will set
|
Changes: * pyenv: Reliably detect parent shell in `pyenv init` (pyenv/pyenv#93) * pyenv: Import recent changes from rbenv 0.4.0 * pyenv: Import `bats` tests from rbenv 0.4.0 * python-build: Add new CPython releases candidates; 3.4.0b2 * python-build: Add ruby-build style patching feature (pyenv/pyenv#91) * python-build: Set `RPATH` if `--enable-shared` was given (pyenv/pyenv#65, pyenv/pyenv#66, pyenv/pyenv#82) * python-build: Update default setuptools version (2.0 -> 2.1) * python-build: Update default pip version (1.4.1 -> 1.5) * python-build: Activate friendly CPython during build if the one is not activated * python-build: Fix broken install.sh * python-build: Import recent changes from ruby-build v20131225.1 * version-ext-compat: Removed from default plugin. Please use [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext) instead.
Changes: * pyenv: Reliably detect parent shell in `pyenv init` (pyenv/pyenv#93) * pyenv: Import recent changes from rbenv 0.4.0 * pyenv: Import `bats` tests from rbenv 0.4.0 * python-build: Add new CPython releases candidates; 3.4.0b2 * python-build: Add ruby-build style patching feature (pyenv/pyenv#91) * python-build: Set `RPATH` if `--enable-shared` was given (pyenv/pyenv#65, pyenv/pyenv#66, pyenv/pyenv#82) * python-build: Update default setuptools version (2.0 -> 2.1) * python-build: Update default pip version (1.4.1 -> 1.5) * python-build: Activate friendly CPython during build if the one is not activated * python-build: Fix broken install.sh * python-build: Import recent changes from ruby-build v20131225.1 * python-build: Fix build error of CPython 2.x on the platform where the `gcc` is llvm-gcc. * version-ext-compat: Removed from default plugin. Please use [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext) instead.
Changes: * pyenv: Reliably detect parent shell in `pyenv init` (pyenv/pyenv#93) * pyenv: Import recent changes from rbenv 0.4.0 * pyenv: Import `bats` tests from rbenv 0.4.0 * python-build: Add new CPython releases candidates; 3.4.0b2 * python-build: Add ruby-build style patching feature (pyenv/pyenv#91) * python-build: Set `RPATH` if `--enable-shared` was given (pyenv/pyenv#65, pyenv/pyenv#66, pyenv/pyenv#82) * python-build: Update default setuptools version (2.0 -> 2.1) * python-build: Update default pip version (1.4.1 -> 1.5) * python-build: Activate friendly CPython during build if the one is not activated * python-build: Fix broken install.sh * python-build: Import recent changes from ruby-build v20131225.1 * python-build: Fix build error of CPython 2.x on the platform where the `gcc` is llvm-gcc. * version-ext-compat: Removed from default plugin. Please use [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext) instead.
Changes: * pyenv: Reliably detect parent shell in `pyenv init` (pyenv/pyenv#93) * pyenv: Import recent changes from rbenv 0.4.0 * pyenv: Import `bats` tests from rbenv 0.4.0 * python-build: Add new CPython releases candidates; 3.4.0b2 * python-build: Add ruby-build style patching feature (pyenv/pyenv#91) * python-build: Set `RPATH` if `--enable-shared` was given (pyenv/pyenv#65, pyenv/pyenv#66, pyenv/pyenv#82) * python-build: Update default setuptools version (2.0 -> 2.1) * python-build: Update default pip version (1.4.1 -> 1.5) * python-build: Activate friendly CPython during build if the one is not activated * python-build: Fix broken install.sh * python-build: Import recent changes from ruby-build v20131225.1 * python-build: Fix build error of CPython 2.x on the platform where the `gcc` is llvm-gcc. * version-ext-compat: Removed from default plugin. Please use [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext) instead.
Changes: * pyenv: Reliably detect parent shell in `pyenv init` (pyenv/pyenv#93) * pyenv: Import recent changes from rbenv 0.4.0 * pyenv: Import `bats` tests from rbenv 0.4.0 * python-build: Add new CPython releases candidates; 3.4.0b2 * python-build: Add ruby-build style patching feature (pyenv/pyenv#91) * python-build: Set `RPATH` if `--enable-shared` was given (pyenv/pyenv#65, pyenv/pyenv#66, pyenv/pyenv#82) * python-build: Update default setuptools version (2.0 -> 2.1) * python-build: Update default pip version (1.4.1 -> 1.5) * python-build: Activate friendly CPython during build if the one is not activated * python-build: Fix broken install.sh * python-build: Import recent changes from ruby-build v20131225.1 * python-build: Fix build error of CPython 2.x on the platform where the `gcc` is llvm-gcc. * version-ext-compat: Removed from default plugin. Please use [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext) instead.
Changes: * pyenv: Reliably detect parent shell in `pyenv init` (pyenv/pyenv#93) * pyenv: Import recent changes from rbenv 0.4.0 * pyenv: Import `bats` tests from rbenv 0.4.0 * python-build: Add new CPython releases candidates; 3.4.0b2 * python-build: Add ruby-build style patching feature (pyenv/pyenv#91) * python-build: Set `RPATH` if `--enable-shared` was given (pyenv/pyenv#65, pyenv/pyenv#66, pyenv/pyenv#82) * python-build: Update default setuptools version (2.0 -> 2.1) * python-build: Update default pip version (1.4.1 -> 1.5) * python-build: Activate friendly CPython during build if the one is not activated * python-build: Fix broken install.sh * python-build: Import recent changes from ruby-build v20131225.1 * python-build: Fix build error of CPython 2.x on the platform where the `gcc` is llvm-gcc. * version-ext-compat: Removed from default plugin. Please use [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext) instead.
Changes: * pyenv: Reliably detect parent shell in `pyenv init` (pyenv/pyenv#93) * pyenv: Import recent changes from rbenv 0.4.0 * pyenv: Import `bats` tests from rbenv 0.4.0 * python-build: Add new CPython releases candidates; 3.4.0b2 * python-build: Add ruby-build style patching feature (pyenv/pyenv#91) * python-build: Set `RPATH` if `--enable-shared` was given (pyenv/pyenv#65, pyenv/pyenv#66, pyenv/pyenv#82) * python-build: Update default setuptools version (2.0 -> 2.1) * python-build: Update default pip version (1.4.1 -> 1.5) * python-build: Activate friendly CPython during build if the one is not activated * python-build: Fix broken install.sh * python-build: Import recent changes from ruby-build v20131225.1 * python-build: Fix build error of CPython 2.x on the platform where the `gcc` is llvm-gcc. * version-ext-compat: Removed from default plugin. Please use [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext) instead. Closes #25783. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
I don't like to add special feature for building 32bit binaries. Please use |
Changes: * pyenv: Reliably detect parent shell in `pyenv init` (pyenv/pyenv#93) * pyenv: Import recent changes from rbenv 0.4.0 * pyenv: Import `bats` tests from rbenv 0.4.0 * python-build: Add new CPython releases candidates; 3.4.0b2 * python-build: Add ruby-build style patching feature (pyenv/pyenv#91) * python-build: Set `RPATH` if `--enable-shared` was given (pyenv/pyenv#65, pyenv/pyenv#66, pyenv/pyenv#82) * python-build: Update default setuptools version (2.0 -> 2.1) * python-build: Update default pip version (1.4.1 -> 1.5) * python-build: Activate friendly CPython during build if the one is not activated * python-build: Fix broken install.sh * python-build: Import recent changes from ruby-build v20131225.1 * python-build: Fix build error of CPython 2.x on the platform where the `gcc` is llvm-gcc. * version-ext-compat: Removed from default plugin. Please use [pyenv-version-ext](https://github.com/yyuu/pyenv-version-ext) instead. Closes Homebrew#25783. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
I know that this is old and closed but 👍 for 32 bit targets. Any possibility to rethink adding this into Pyenv? Shouldn't pyenv be an ultimate and easy installer for any Python version? Or at least please state in the README how one can use CFLAGS/LDFLAGS to install 32bit Python |
The posted solution on this issue did not work for me:
Honestly the approach that this project has taken of shying away with dealing with these problems has simply pushed the problems downstream. And pyenv is in fact the only way on installing Python onto CI containers. |
Some applications require a 32bit python. These apps link (dynamically) against the libpythonXX.so.
I'm working on adding support for installing a 32bit python using pyenv install and will submit a pull request if necessary when I'm done.
Is this something others are interested in?
The text was updated successfully, but these errors were encountered: