debian: run with python3
This commit is contained in:
parent
0e92ea921d
commit
defbfd95fd
|
@ -2,26 +2,28 @@ Source: scrutiny
|
|||
Maintainer: Frederic Peters <fpters@entrouvert.com>
|
||||
Section: python
|
||||
Priority: optional
|
||||
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 9), dh-systemd
|
||||
Build-Depends: python3-setuptools, python3-all, debhelper (>= 9), dh-python, dh-systemd
|
||||
Standards-Version: 3.9.6
|
||||
X-Python-Version: >= 2.7
|
||||
|
||||
Package: python-scrutiny
|
||||
Package: python3-scrutiny
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends}, ${python:Depends},
|
||||
python-django (>= 1.8),
|
||||
python-gadjo
|
||||
Recommends: python-django-mellon
|
||||
Depends: ${misc:Depends}, ${python3:Depends},
|
||||
python3-django (>= 1:1.11),
|
||||
python3-gadjo,
|
||||
python3-requests
|
||||
Recommends: python3-django-mellon
|
||||
Description: Tracker of installed modules
|
||||
|
||||
Package: scrutiny
|
||||
Architecture: all
|
||||
Depends: ${misc:Depends},
|
||||
python-scrutiny (= ${binary:Version}),
|
||||
python-memcache,
|
||||
python-psycopg2,
|
||||
python3-scrutiny (= ${binary:Version}),
|
||||
python3-memcache,
|
||||
python3-psycopg2,
|
||||
uwsgi,
|
||||
uwsgi-plugin-python,
|
||||
uwsgi-plugin-python3,
|
||||
memcached
|
||||
Recommends: nginx, postgresql
|
||||
Breaks: python-chrono (<<0.1.post69)
|
||||
Replaces: python-chrono (<<0.1.post69)
|
||||
Description: Tracker of installed modules
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/usr/lib/scrutiny
|
|
@ -1,2 +0,0 @@
|
|||
COPYING
|
||||
README
|
|
@ -1,2 +0,0 @@
|
|||
usr/bin/manage.py /usr/lib/scrutiny
|
||||
usr/lib/python2*/*-packages
|
|
@ -1,8 +1,11 @@
|
|||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
export PYBUILD_NAME=scrutiny
|
||||
|
||||
%:
|
||||
dh $@ --with python2
|
||||
dh $@ --with python3,systemd --buildsystem=pybuild
|
||||
|
||||
override_dh_install:
|
||||
dh_install
|
||||
mv $(CURDIR)/debian/python3-scrutiny/usr/bin/manage.py $(CURDIR)/debian/scrutiny/usr/lib/scrutiny/manage.py
|
||||
|
|
|
@ -18,8 +18,8 @@ fi
|
|||
|
||||
if test $# -eq 0
|
||||
then
|
||||
python ${MANAGE} help
|
||||
python3 ${MANAGE} help
|
||||
exit 1
|
||||
fi
|
||||
|
||||
python ${MANAGE} "$@"
|
||||
python3 ${MANAGE} "$@"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
auto-procname = true
|
||||
procname-prefix-spaced = scrutiny
|
||||
|
||||
plugin = python
|
||||
plugin = python3
|
||||
module = scrutiny.wsgi:application
|
||||
|
||||
http-socket = /run/scrutiny/scrutiny.sock
|
||||
|
|
Loading…
Reference in New Issue