Permalink
Browse files

auto-detect if distribution has scripts

  • Loading branch information...
1 parent 88c8428 commit 621c6378855478ba34e9d5c15a1bea1919e7271d @astraw committed Dec 30, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 stdeb/command/sdist_dsc.py
View
6 stdeb/command/sdist_dsc.py
@@ -140,7 +140,7 @@ def run(self):
use_setuptools = False
install_requires = ()
- have_script_entry_points = False # XXX check for scripts somehow
+ have_script_entry_points = None
config_fname = 'stdeb.cfg'
# Distutils fails if not run from setup.py dir, so this is OK.
@@ -180,8 +180,6 @@ def run(self):
if ('[console_scripts]' in entry_points or
'[gui_scripts]' in entry_points):
have_script_entry_points = True
- else:
- have_script_entry_points = False
else:
# We don't have setuptools, so guess egg_info_dirname to
# find old stdeb.cfg.
@@ -198,6 +196,8 @@ def run(self):
'should move it alongside setup.py.' % entry)
cfg_files.append(config_fname)
+ if have_script_entry_points is None:
+ have_script_entry_points = self.distribution.has_scripts()
debinfo = DebianInfo(
cfg_files=cfg_files,

0 comments on commit 621c637

Please sign in to comment.