Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
logilab-mtconverter
Commits
207b21ce7b8f
Commit
d0d9c25a
authored
Mar 25, 2009
by
sylvain.thenault@logilab.fr
Browse files
NO_SETUPTOOLS
parent
c4d26e55d574
Changes
2
Hide whitespace changes
Inline
Side-by-side
debian/rules
View file @
207b21ce
...
...
@@ -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)
...
...
setup.py
View file @
207b21ce
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment