Commit 9f326a4f authored by Julien Muchembled's avatar Julien Muchembled

zc.recipe.egg: make 'interpreter' usable even when 'scripts' value is empty

parent 7a5dd160
...@@ -161,13 +161,12 @@ class Scripts(Eggs): ...@@ -161,13 +161,12 @@ class Scripts(Eggs):
options = self.options options = self.options
scripts = options.get('scripts') scripts = options.get('scripts')
if scripts or scripts is None: interpreter = options.get('interpreter')
if scripts != '' or interpreter:
if scripts is not None: if scripts is not None:
scripts = scripts.split() scripts = dict(
scripts = dict([ s.split('=', 1) if '=' in s else (s, s)
('=' in s) and s.split('=', 1) or (s, s) for s in scripts.split())
for s in scripts
])
for s in options.get('entry-points', '').split(): for s in options.get('entry-points', '').split():
parsed = self.parse_entry_point(s) parsed = self.parse_entry_point(s)
...@@ -190,7 +189,7 @@ class Scripts(Eggs): ...@@ -190,7 +189,7 @@ class Scripts(Eggs):
reqs, ws, sys.executable, options['bin-directory'], reqs, ws, sys.executable, options['bin-directory'],
scripts=scripts, scripts=scripts,
extra_paths=self.extra_paths, extra_paths=self.extra_paths,
interpreter=options.get('interpreter'), interpreter=interpreter,
initialization=options.get('initialization', ''), initialization=options.get('initialization', ''),
arguments=options.get('arguments', ''), arguments=options.get('arguments', ''),
relative_paths=self._relative_paths, relative_paths=self._relative_paths,
......
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