[Build-common-hackers] Bug#628110: Bug#628110: Bug#628110: cdbs: Wrong install dir for python modules

Daniel Dehennin daniel.dehennin at baby-gnu.org
Fri Jun 17 12:17:25 UTC 2011


Jonas Smedegaard <dr at jones.dk> writes:

> On 11-06-17 at 12:48pm, Daniel Dehennin wrote:
>> > I see no problem with CDBS, then, and thus close this as a non-bug.
>> 
>> Hello,
>> 
>> I'm trying to provide a python module for an application, the
>> application install some modules in
>> /usr/lib/python2.6/dist-packages/zephir/monitor/agents/
>> 
>> Using CDBS with pycentral system, my module land in
>> /usr/lib/python2.6/site-packages/zephir/monitor/agents/ and is not
>> usable by the application[1]:
>
> Is your source package available somewhere public?

Not really, this is a very tiny thing, only a .py I want to place
correctly, I think the most relevant part is debian/rules and setup.py.

Note that I want to compile this Ubuntu Lucid, I tried with
"DEB_PYTHON_SYSTEM=pysupport" and "DEB_PYTHON_SYSTEM=pycentral"[1]

Here is my debian/rules:

#v+
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/cdbs/1/rules/debhelper.mk

#DEB_PYTHON_SYSTEM=pycentral
DEB_PYTHON_SYSTEM=pysupport
include /usr/share/cdbs/1/class/python-distutils.mk

# Add here any variable or target overrides you need.
#v-


Here is my setup:

#v+
#!/usr/bin/env python
# -*- coding: utf-8 -*-

###########################################################################
# 
# Copyright 2010, 2011 Daniel Dehennin <daniel.dehennin at ac-caen.fr>
# Licence GPL-3
#  
# setup.py
#  
# script d'installation de l'agent zephir smart
#       
###########################################################################

From distutils.core import setup

setup(
    author='Daniel Dehennin',
    author_email='daniel.dehennni at ac-caen.fr',
    name='eole-smartmontools',
    version='0.2',
    description='Eole SMART, monitoring for SMART',
    url='http://www.eole.orion.education.fr',
    package_dir={'zephir':'agent/zephir'},
    py_modules=['zephir.monitor.agents.smart'],
)
#v-

Someone debian-python give me the advise to use dh_python2, which is not
available on Lucid, or use "DH_PYCENTRAL=include-links dh_pycentral"

I tryed to add it to "binary-install-python/<package>::" without success.

It was working on hardy (and sarge), upstream application[2] add call to
dh_pycentral[3] because he was not able to use plugins config cache with
twisted using python-support.

I hope I did not miss some pythoneries and provide enough informations.

Regards.

Footnotes: 
[1]  Note that with pycentral it does not work if I set
     DH_PYCENTRAL=include-links

[2]  http://dev-eole.ac-dijon.fr/projects/zephir-client/repository

[3]  http://dev-eole.ac-dijon.fr/projects/zephir-client/repository/revisions/master/entry/debian/rules

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20110617/3aed7051/attachment.pgp>


More information about the Build-common-hackers mailing list