On Fri, Jan 23, 2015 at 1:19 PM, M.-A. Lemburg
On 23.01.2015 19:48, Matthias Klose wrote:
On 01/23/2015 06:30 PM, Cyd Haselton wrote:
Related to my earlier question regarding building Python on Android and an undefined reference to dlopen error...I have the following question: Is it possible to build and install Python without having to build and install...or use...distutils?
Some background: I can build the python interpreter on my device, and I can build a bunch of modules. The problem appears when make reaches the part where setup.py is used to build and import modules...specifically when setup.py attempts to import distutils.core.
you can do this using Setup.local. This works for me building additional extensions as builtins. It might require some tweaking to build everything.
You may want to have a look at the Setup files we're using in eGenix PyRun, which uses them to force static builds of the various built-in extensions.
Look for these files:
PyRun/Runtime/Setup.PyRun-2.7 PyRun/Runtime/Setup.PyRun-3.4
in the source archives:
Do you have a browseable git repo?
Otoh, I would like to get rid off the setup.py altogether (/me ducks ...).
Why ? It's great for finding stuff on your system and configuring everything without user intervention (well, most of the time :-)).
-- Marc-Andre Lemburg eGenix.com
Professional Python Services directly from the Source (#1, Jan 23 2015)
Python Projects, Coaching and Consulting ... http://www.egenix.com/ mxODBC Plone/Zope Database Adapter ... http://zope.egenix.com/