1. Alexandre Quessy
  2. pyportmidi
  3. Issues
Issue #1 resolved

debian package won't work in a python 2.6 environnement

Anonymous created an issue

Existing package should include pypm.so in both /usr/lib/python2.5/site-packages and /usr/lib/python2.6/dist-packages.

Current workaround: copy /usr/lib/python2.5/site-packages/pypm.so in /usr/lib/python2.6/dist-packages

Comments (4)

  1. simonp

    patch not attached. debian/rules now uses dh_pysupport bitbucket don't want me to attach the patch... So the issue is resolved, for me only. Thanks bitbucket!

  2. simonp
    diff -r 81575e863058 debian/control
    --- a/debian/control	Tue Jan 19 01:48:10 2010 -0500
    +++ b/debian/control	Fri Mar 12 17:03:41 2010 -0500
    @@ -2,20 +2,26 @@
     Section: python
     Priority: optional
     Maintainer: Alexandre Quessy <alexandre@quessy.net>
    -Build-Depends: cdbs, debhelper (>= 5.0.38), python-central (>= 0.6.0), python-pyrex, python-dev, libportmidi-dev, libasound2-dev
    +Build-Depends: cdbs, python2.4-dev, debhelper (>= 5.0.38), python-central (>= 0.6.0), python-pyrex, python-dev, libportmidi-dev, libasound2-dev, python-all-dev
     Suggests: timidity, freepats
    -XS-Python-Version: >= 2.4
    -Standards-Version: 3.8.0
    +XS-Python-Version: all
    +Standards-Version: 3.8.3
     Homepage: http://bitbucket.org/aalex/pyportmidi/
     
     Package: python-portmidi
    -Architecture: all
    +Architecture: any
     XB-Python-Version: ${python:Versions}
    -Depends: ${misc:Depends}, python (>= 2.4), python-central (>= 0.6.7), libportmidi0
    -Description: Wrapper for PortMidi to send and receive MIDI in Python.
    - .
    - pyPortMidi is a Python wrapper for PortMidi. PortMidi is a cross-platform C library for realtime MIDI control. Using pyPortMidi, you can send and receive MIDI data in realtime from Python. 
    +Provides: ${python:Provides}
    +Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python (>= 2.4), python-central (>= 0.6.7), libportmidi0
    +Description: Python interface to libportmidi
    + pyPortMidi is a Python wrapper for PortMidi. PortMidi is a cross-platform C
    + library for realtime MIDI control. Using pyPortMidi, you can send and receive
    + MIDI data in realtime from Python. 
      . 
    - Besides using pyPortMidi to communicate to synthesizers and the like, it is possible to use pyPortMidi as a way to send MIDI messages between software packages on the same computer. 
    + Besides using pyPortMidi to communicate to synthesizers and the like, it is
    + possible to use pyPortMidi as a way to send MIDI messages between software
    + packages on the same computer.
      . 
    - The original code is from John Harrison. See http://alumni.media.mit.edu/~harrison/pyportmidi.html
    + The original code is from John Harrison.
    + See http://python-pyrex.media.mit.edu/~harrison/pyportmidi.html
    +
    diff -r 81575e863058 debian/rules
    --- a/debian/rules	Tue Jan 19 01:48:10 2010 -0500
    +++ b/debian/rules	Fri Mar 12 17:03:41 2010 -0500
    @@ -1,13 +1,27 @@
     #!/usr/bin/make -f
     
    -DEB_PYTHON_SYSTEM=pycentral
    +# See http://svn.debian.org/viewsvn/collab-maint/deb-maint/python-support/trunk/README
    +PYVERS=$(shell pyversions -vs)
     
    +# those takes care of default rules 
    +export DEB_PYTHON_SYSTEM=pysupport
     include /usr/share/cdbs/1/rules/debhelper.mk
     include /usr/share/cdbs/1/class/python-distutils.mk
     
    -# Add here any variable or target overrides you need.
    -binary-install/python-portmidi::
    -	dh_pycentral -ppyPortMidi
    +build: $(PYVERS:%=build-python%)
    +	touch $@
    +
    +build-python%:
    +	python$* setup.py build
    +	touch $@
    +
    +install: build $(PYVERS:%=install-python%)
    +install-python%:
    +	python$* setup.py install --root $(CURDIR)/debian/python-portmidi
    +
    +binary-arch:
    +	dh_pysupport
    +	dh_installdeb
     	dh_installdocs test_pyportmidi.py
     	dh_installdocs debian/copyright
     	dh_installdocs README.txt
    
  3. Log in to comment