Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 018cbf85 authored by IMBERT Matthieu's avatar IMBERT Matthieu
Browse files

[packaging] fix debian package gen + make it compatible with wheezy

parent 963bd8e6
No related branches found
No related tags found
No related merge requests found
...@@ -2,14 +2,14 @@ Source: python-execo ...@@ -2,14 +2,14 @@ Source: python-execo
Maintainer: Matthieu Imbert <matthieu.imbert@inria.fr> Maintainer: Matthieu Imbert <matthieu.imbert@inria.fr>
Section: python Section: python
Priority: optional Priority: optional
Build-Depends: debhelper (>= 9), dh-python, python-all, python-setuptools, python3-all, python3-setuptools, python-docutils, python-sphinx, graphviz Build-Depends: debhelper (>= 9), dh-python, python-all, python-setuptools, python3-all, python3-setuptools, python-docutils, python-sphinx, graphviz, python-argparse, python-httplib2, python-keyring, python-psycopg2, python-networkx, python-pygraphviz, python-matplotlib, git
Standards-Version: 3.9.1 Standards-Version: 3.9.1
X-Python-Version: >= 2.6 X-Python-Version: >= 2.6
X-Python3-Version: >= 3.2 X-Python3-Version: >= 3.2
Package: python-execo Package: python-execo
Architecture: all Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, ${sphinxdoc:Depends} Depends: ${misc:Depends}, ${python:Depends}, ${sphinxdoc:Depends}, python-argparse
Recommends: python-httplib2, python-keyring, python-psycopg2, python-networkx, graphviz, python-pygraphviz, python-matplotlib Recommends: python-httplib2, python-keyring, python-psycopg2, python-networkx, graphviz, python-pygraphviz, python-matplotlib
Description: Asynchronous control of local or remote unix processes. Description: Asynchronous control of local or remote unix processes.
Execo offers a Python API for asynchronous control of local or remote, Execo offers a Python API for asynchronous control of local or remote,
......
#!/usr/bin/make -f #!/usr/bin/make -f
export PYBUILD_NAME=execo export PYBUILD_NAME=execo
export PYBUILD_AFTER_INSTALL={interpreter} setup.py install_doc --install-layout deb --root {destdir} #export PYBUILD_AFTER_INSTALL={interpreter} setup.py install_doc --install-layout deb --root {destdir}
#export PYBUILD_AFTER_INSTALL=export http_proxy=127.0.0.1:9 ; export https_proxy=127.0.0.1:9 ; PYTHONPATH=./src sphinx-build -N -bhtml doc/ build/sphinx/html ; mkdir -p {destdir}/share/doc/execo/ ; cp -a build/sphinx/html {destdir}/share/doc/execo/
export PYBUILD_AFTER_INSTALL=export http_proxy=127.0.0.1:9 ; export https_proxy=127.0.0.1:9 ; PYTHONPATH=./src sphinx-build -N -bhtml doc/ build/sphinx/html ; {interpreter} setup.py install_doc --install-layout deb --root {destdir}
%: %:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
...@@ -137,7 +137,7 @@ class install(_install): ...@@ -137,7 +137,7 @@ class install(_install):
class install_doc(_install): class install_doc(_install):
def run(self): def run(self):
self.run_command('build_doc') #self.run_command('build_doc')
build = self.get_finalized_command('build') build = self.get_finalized_command('build')
build_dir = os.path.join(os.path.abspath(build.build_base), "sphinx", "html") build_dir = os.path.join(os.path.abspath(build.build_base), "sphinx", "html")
build_dir = os.path.abspath(build_dir) build_dir = os.path.abspath(build_dir)
...@@ -175,6 +175,7 @@ if __name__ == "__main__": ...@@ -175,6 +175,7 @@ if __name__ == "__main__":
cmdclass = { 'build_py': build_py, cmdclass = { 'build_py': build_py,
'sdist': sdist, 'sdist': sdist,
'install': install, 'install': install,
'install_doc': install_doc,
'clean': clean } 'clean': clean }
name = 'execo' name = 'execo'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment