Commit d0d9c25a authored by sylvain.thenault@logilab.fr's avatar sylvain.thenault@logilab.fr
Browse files

NO_SETUPTOOLS

parent c4d26e55d574
......@@ -16,7 +16,7 @@ export DH_COMPAT=5
build: build-stamp
build-stamp:
dh_testdir
python setup.py -q build
NO_SETUPTOOLS=1 python setup.py -q build
touch build-stamp
clean:
......@@ -33,7 +33,7 @@ install: build
dh_testroot
dh_clean -k
dh_installdirs
python setup.py -q install --no-compile --prefix=debian/python-logilab-mtconverter/usr/
NO_SETUPTOOLS=1 python setup.py -q install --no-compile --prefix=debian/python-logilab-mtconverter/usr/
# remove sub-package __init__ file (created in postinst)
rm debian/python-logilab-mtconverter/usr/lib/python*/site-packages/logilab/__init__.py
# remove test directory (installed in in the doc directory)
......
......@@ -14,6 +14,8 @@ import shutil
from os.path import isdir, exists, join, walk
try:
if os.environ.get('NO_SETUPTOOLS'):
raise ImportError()
from setuptools import setup
from setuptools.command import install_lib
USE_SETUPTOOLS = 1
......@@ -23,6 +25,7 @@ except ImportError:
USE_SETUPTOOLS = 0
sys.modules.pop('__pkginfo__', None)
# import required features
from __pkginfo__ import modname, version, license, short_desc, long_desc, \
web, author, author_email
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment