> * Sylvain Thénault <[email protected]> [22-mar-2010 12:18]: > On 22 mars 11:58, Sandro Tosi wrote: > > > I rather think the current test about distutils version is inadequate. > > > Because '--install-layout=dev' doesn't seem to exist for python 2.5.2-3 > > > (lenny) but *does* for python 2.5.4-1 (distutils version still the same). > > > > Yep, you're right: it was introduced in 2.5.3-1~exp1 so it might be > > better to check python version than distutils one. > > Julien, could you do the proper fix in lgc'setup.py please ? It's fixed in repo but I'm thinking about a new way now.
Sandro,
Alexandre,
I noticed `/usr/share/python/python.mk` in squeeze release recently (see
attachment).
A snippet is proposed for backport support as we want here at Logilab to
be able to build for lenny. The `python.mk` file defines some makefile
variables as for example:
# Arguments to pass to setup.py install
py_setup_install_args = --install-layout=deb
What are your opinion about using the ${py_setup_install_args} variable
in debian/rules ?
--
Julien JEHANNET LOGILAB, Paris (France)
http://www.cubicweb.org CubicWeb, le cadriciel du web sémantique
http://www.logilab.org Dépôt des logiciels libres conçus par Logilab
http://www.logilab.fr Informatique scientifique & Gestion de connaissances
# some macros useful for packaging python packages
# to include it unconditionally:
# include /usr/share/python/python.mk
#
# to include it conditionally, and have the packaging working with earlier
releases
# and backports:
# -include /usr/share/python/python.mk
# ifeq (,$(py_sitename))
# py_sitename = site-packages
# py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
# py_sitename_sh = $(py_sitename)
# py_libdir_sh = $(py_libdir)
# endif
# py_sitename: name of the site-packages/dist-packages directory depending
# on the python version. Call as: $(call py_sitename, <python version>).
# Don't use this in shell snippets inside loops.
py_sitename = $(if $(filter $(subst python,,$(1)), 2.3 2.4
2.5),site,dist)-packages
# py_libdir: absolute path to the default python library for third party
# stuff. Call as: $(call py_libdir, <python version>).
# Don't use this in shell snippets inside loops.
py_libdir = /usr/lib/python$(subst python,,$(1))/$(py_sitename)
# The same macros for use inside loops in shell snippets
py_sitename_sh = $$(basename $$(_py_=$(strip $(1)); python$${_py_\#python*} -c
'from distutils import sysconfig; print(sysconfig.get_python_lib())'))
py_libdir_sh = $$(_py_=$(strip $(1)); python$${_py_\#python*} -c 'from
distutils import sysconfig; print(sysconfig.get_python_lib())')
# Arguments to pass to setup.py install
py_setup_install_args = --install-layout=deb
signature.asc
Description: Digital signature
_______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
