Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Hulp bij maken debian package van een python-programma  (gelezen 798 keer)

Offline wowo

  • Lid
Hulp bij maken debian package van een python-programma
« Gepost op: 2017/06/27, 20:08:30 »
Het is mij wel al gelukt om vanuit de broncode QMapShack te compileren en hiervan een debian-package te maken mbv checkinstall. Alles werkt.
Nu heb ik vanuit de broncode het programma picard (zie https://picard.musicbrainz.org/downloads) gecompileerd. Ook dit programma heb ik werkend gekregen.
Maar nu wil ik van dit gecompileerde programma een debian-package maken maar dat lukt mij niet.
Checkinstall werkt niet waarschijnlijk omdat dit programma een python programma is?
MusicBrainz Picard Installation
===============================

Dependencies
------------

Before installing Picard, you need to have these:

 * Python 2.7 or newer (Picard will not work with Python 3)
   http://python.org/download

 * PyQt 4.5 or newer
   http://www.riverbankcomputing.co.uk/software/pyqt/download

 * Mutagen 1.22 or newer (1.23 or newer for AIFF support)
   https://bitbucket.org/lazka/mutagen/downloads

 * gettext
   Windows: http://gnuwin32.sourceforge.net/packages/gettext.htm

 * a compiler
   Windows should work with Visual C++ 2008 Express:
   http://go.microsoft.com/?linkid=7729279

 * chromaprint (optional)
   For fingerprinting (scanning) files
   http://acoustid.org/chromaprint

 * python-discid or python-libdiscid (optional)
   Required for CD lookups.
   https://python-discid.readthedocs.org/
   Depends on libdiscid: http://musicbrainz.org/doc/libdiscid
   Due to slowdowns in reading the CD TOC, using libdiscid versions
   0.3.0 - 0.4.1 is not recommended.


On Windows it is recommended to use Pip for Windows:
https://sites.google.com/site/pydatalog/python/pip-for-windows
and then just:
  pip install mutagen
  pip install discid
there for Mutagen and python-discid.

The binaries for Python, GetText (msgfmt), fpcalc and discid.dll have to be
in the %PATH% on Windows.


Installation
------------

After installing the dependencies, you can install Picard by running:

  sudo python setup.py install

This will automatically build and install all required Python modules.
On Windows you need to have Administrator rights, but don't put "sudo"
in front of the command.
To start Picard now you can use:

  picard


Running From the Source Tree
----------------------------

If you want to run Picard from the source directory without installing, you
need to build the C extensions and locales manually:

  python setup.py build_ext -i
  python setup.py build_locales -i

And to start Picard use:

  python tagger.py


Running the Test Suite
----------------------

To run the included tests, follow the instructions for "Running From
the Source Tree".  Afterward you can run the tests using setup.py:

  python setup.py test

Ik gebruik Ubuntu 16.04
De volgende afhankelijkheden heb ik toegevoegd:
sudo apt-get install acoustid-fingerprinter libchromaprint-dev libchromaprint-tools pyqt5-dev pyqt5-dev-tools python-libdiscid python-mutagen pyqt4-dev-tools python-qt4 De rest was mij mij aanwezig.
Ik kan dus dit programma zonder problemen draaien vanaf de "source tree" maar ik wil er dus een debianpackage van maken.
Wie heeft er misschien zin om het ook eens te proberen.
3xDesktop Manjaro Linux Gnome; 2xLaptop Manjaro Linux Gnome