[Sqlalchemy-tickets] [sqlalchemy] #2806: setup.py misbehaves with respect to the location of shared
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2013-08-19 15:58:24
|
#2806: setup.py misbehaves with respect to the location of shared objects
-------------------------+-----------------------------------------
Reporter: assarbad | Owner: zzzeek
Type: defect | Status: new
Priority: medium | Milestone:
Component: cextensions | Severity: no triage selected yet
Keywords: | Progress State: awaiting triage
-------------------------+-----------------------------------------
Using SQLalchemy 0.8.2 I was trying to build and install it into a custom
Python build (i.e. not the system one) on Scientific Linux 6.1.
I'm setting `$PYTHONHOME` before invoking `setup.py install` using the
Python into which I want to install the SQLAlchemy module.
Since I am trying to build an RPM and the idea is to have a self-contained
Python environment, everything should go into a particular folder
(`/opt/app`) in this case.
I am using `fakechroot` to mimic the target environment on the build
machine and it works for Python as well as the extensions I am trying to
install. With the sole exception of SQLAlchemy and the `.so` files built
for it. These end up inside:
{{{
/home/oliver/.python-eggs/SQLAlchemy-0.8.2-py2.7-linux-x86_64.egg-
tmp/sqlalchemy/cutils.so
/home/oliver/.python-eggs/SQLAlchemy-0.8.2-py2.7-linux-x86_64.egg-
tmp/sqlalchemy/cprocessors.so
/home/oliver/.python-eggs/SQLAlchemy-0.8.2-py2.7-linux-x86_64.egg-
tmp/sqlalchemy/cresultproxy.so
}}}
within the faked `chroot` environment which is not the intended behavior.
Instead they should all go into the `site-package` directory of the Python
installation.
Am I doing something wrong or is this a defect?
Also note that from the output of `setup.py install` when run inside the
faked `chroot` environment, I see:
{{{
creating stub loader for sqlalchemy/cprocessors.so
creating stub loader for sqlalchemy/cresultproxy.so
creating stub loader for sqlalchemy/cutils.so
byte-compiling build/bdist.linux-x86_64/egg/sqlalchemy/cprocessors.py to
cprocessors.pyc
byte-compiling build/bdist.linux-x86_64/egg/sqlalchemy/cresultproxy.py to
cresultproxy.pyc
byte-compiling build/bdist.linux-x86_64/egg/sqlalchemy/cutils.py to
cutils.pyc
}}}
Thanks and best regards
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2806>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|