error regarding python2 / 3
Can make-deb be used with python3 ?
I am on ubuntu 15.10 and have dh-virtualenv 0.7.2 (the apt-get version). After install I get following error: usr@xps:~/pq$ pip3 install make-deb Collecting make-deb Using cached make-deb-0.0.4.tar.gz Requirement already satisfied (use --upgrade to upgrade): Jinja2 in /home/usr/.venvs/pq3/lib/python3.4/site-packages (from make-deb) Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in /home/usr/.venvs/pq3/lib/python3.4/site-packages (from Jinja2->make-deb) Building wheels for collected packages: make-deb Running setup.py bdist_wheel for make-deb ... done Stored in directory: /home/usr/.cache/pip/wheels/2f/01/5f/ea57068e5f453fb5fd2326faf937c35c79c0cf998bd0eeaf09 Successfully built make-deb Installing collected packages: make-deb Successfully installed make-deb-0.0.4
(pq3) usr@xps:~/pq$ make-deb File "/home/usr/.venvs/pq3/bin/make-deb", line 14 print e ^ SyntaxError: Missing parentheses in call to 'print'
Let us know if the changes in 546cea1730a44 work for you under Python 3. You should be able to grab the latest version from PyPi.
Can you please add documentation in the Readme.md on how to run this while specifying your python version? My default python on my system is python 2.7, but my project I'm making is python 3, and make-deb + dpkg-buildpackage -us -uc is trying to build it with python 2.7
I think is because make-deb triggers default to python2.6 and python2.7 https://github.com/nylas/make-deb/blob/master/make_deb/resources/debian/triggers.j2#L4-L5
https://dh-virtualenv.readthedocs.io/en/latest/howtos.html#building-packages-for-python3