This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pooryorick
Recipients pooryorick
Date 2015-01-20.22:51:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421794283.67.0.365311015753.issue23284@psf.upfronthosting.co.za>
In-reply-to
Content
Building Python-2.7.9 using --prefix, with an ncurses that's linked to libtinfo
and a readline that isn't linked to any termcap library, I ran into the trouble
that the curses module wan't buing build with the needed -L and -l flags for
the libtinfo shared object.  I dug into setup.py, and ended up overhauling the
readline, curses, and also dbm handling (more on that in another ticket).  I
also made changes to allow setup.py to pick up options like -isystem from
$CPPFLAGS, replacing in the process the "optparse" module with the "argparse"
module.  Since argparse requires collections.OrderedDict, which isn't yet built
at this stage, I added Lib_boot/argparse_boot.py, which uses the pure-Python
OrderedDict from

    https://pypi.python.org/pypi/ordereddict

and had setup.py use "argparse_boot" module instead.

The build also ran into trouble with system directories that setup.py
explicitly adds to inc_dirs and lib_dirs ahead of those of the alternate
prefix.

The attached files fixed all these issues in my scenario, allowing a succesful
build and install of Python-2.7.9.
History
Date User Action Args
2015-01-20 22:51:23pooryoricksetrecipients: + pooryorick
2015-01-20 22:51:23pooryoricksetmessageid: <1421794283.67.0.365311015753.issue23284@psf.upfronthosting.co.za>
2015-01-20 22:51:23pooryoricklinkissue23284 messages
2015-01-20 22:51:23pooryorickcreate