You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
comment out the unset of VERSION_NAME in order to be able to give 'aliased' names for e.g. 2.7.3-32bit. Perhaps it would be useful to add an --as argument to pyenv install.
work around the bash quoting issue in order to be able to specify LDFLAGS containing spaces. I would be very grateful for assistance in resolving this issue properly. I couldn't figure out how to quote the LDFLAGS correctly so that it would be passed sanely to configure.
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 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
—
Reply to this email directly or view it on GitHub.
@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 rpath if --enable-shared was given in PYTHON_CONFIGURE_OPTS. With this fix, following one liner will build 32bit Python with shared library.
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
(so ppl won't have to search for this issue in the future ^^).
Reacted by Tacet, Annika Lindh, Yao-Po Wang, Qaiser Abbas, Antoni Ivanov, Nelson Chen, LaScrountch, Lukasz Taczuk, ZhangHao, James Braza and 3 more
Activity
yyuu commentedon Oct 16, 2013
I have never ran into similar problems. Though, the patches are welcome 👍
s1341 commentedon Nov 3, 2013
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?
jstarsky commentedon Dec 5, 2013
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
s1341 commentedon Dec 5, 2013
I have not yet completed implementing this. Waiting for some feedback from @yyuu.
What os are you running?
jstarsky commentedon Dec 5, 2013
i am running osx maverick
jstarsky commentedon Dec 5, 2013
or at less do you known how to install python 2.6.9 with pyenv but 32 bits
Build as 32bit if `--32bit` is given as argument of `python-build` (#66)
yyuu commentedon Dec 6, 2013
@s1341 Sorry to be late. I don't like to have definitions per target architectures. I think that doing like
pyenv install --debugis fair.I created my workaround to build 32bit binary as 387d69a (on the branch named
32), please try it later.s1341 commentedon Dec 8, 2013
@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.
Pass rpath to linker if `--enable-shared` was given (#65, #66, #82)
yyuu commentedon Dec 20, 2013
I pushed 43212f6 which will set
rpathif--enable-sharedwas given inPYTHON_CONFIGURE_OPTS. With this fix, following one liner will build 32bit Python with shared library.pyenv v0.4.0-20140110
pyenv v0.4.0-20140110.1
pyenv v0.4.0-20140110.1
pyenv v0.4.0-20140110.1
pyenv v0.4.0-20140110.1
pyenv v0.4.0-20140110.1
pyenv 0.4.0-20140110.1
yyuu commentedon Feb 7, 2014
I don't like to add special feature for building 32bit binaries. Please use
CFLAGSandLDFLAGSto specify compiler/linker flags.pyenv 0.4.0-20140110.1
disconnect3d commentedon Apr 23, 2017
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
(so ppl won't have to search for this issue in the future ^^).
pyenv 0.4.0-20140110.1