Editing PyMaemo/Scratchboxless packaging guide
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 71: | Line 71: | ||
== Building a basic debian directory == | == Building a basic debian directory == | ||
- | Another useful command is ''debianize''. It will read the configuration file and write a directory named debian in the same directory. This can be used for manually creating the packages using dpkg tools directly. For a detailed usage example see the [http://github.com/astraw/stdeb#debianize-distutils-command | + | Another useful command is ''debianize''. It will read the configuration file and write a directory named debian in the same directory. This can be used for manually creating the packages using dpkg tools directly. For a detailed usage example see the [http://github.com/astraw/stdeb#debianize-distutils-command steb website]. |
Note: sdist_dsc and bdist_deb do '''not''' use this directory, generating a new one in the source dir under deb_dist/. | Note: sdist_dsc and bdist_deb do '''not''' use this directory, generating a new one in the source dir under deb_dist/. | ||
Line 87: | Line 87: | ||
== Support for non-Debian systems == | == Support for non-Debian systems == | ||
- | + | '''DRAFT DRAFT DRAFT DRAFT DRAFT''' | |
- | + | ||
- | + | ||
- | + | ||
If you're using a distro not based on Debian, you can still create source packages for uploading to extras-devel, but won't be able to create binary packages (.deb). | If you're using a distro not based on Debian, you can still create source packages for uploading to extras-devel, but won't be able to create binary packages (.deb). | ||
Line 96: | Line 93: | ||
For doing this, you will need the sdist_deb module available [http://gitorious.org/pymaemo/sboxless here]; just clone it in some directory and point the PYTHONPATH environment variable there. | For doing this, you will need the sdist_deb module available [http://gitorious.org/pymaemo/sboxless here]; just clone it in some directory and point the PYTHONPATH environment variable there. | ||
- | + | For using it, first include the module in your setup.py: | |
- | + | try: | |
- | + | from sdist_deb import sdist_deb | |
+ | except ValueError: | ||
+ | from distutils.core import Command | ||
+ | class sdist_deb(Command): | ||
+ | pass | ||
- | The | + | The try/except statement and the dummy class are needed so the package won't break when built on the extras-devel autobuilder. |
- | + | Add a new cmdclass to your setup.py, or update the existing one: | |
- | PYTHONPATH=/path/to/ | + | cmdclass={'sdist_deb': sdist_deb} |
+ | |||
+ | or | ||
+ | |||
+ | cmdclass={'command1': command1, | ||
+ | 'command2': command1, | ||
+ | (...) | ||
+ | 'sdist_deb': sdist_deb} | ||
+ | |||
+ | Now just use the new command to build the sources: | ||
+ | |||
+ | PYTHONPATH=/path/to/sdist_deb python setup.py sdist_deb | ||
The source files will be generated on the ./dist directory. | The source files will be generated on the ./dist directory. | ||
+ | |||
== References == | == References == |
Learn more about Contributing to the wiki.