Skip to content

Commit

Permalink
Merge pull request #212 from mikekap/fix_env_pex
Browse files Browse the repository at this point in the history
Fix creating an environment pex via bdist_pex
  • Loading branch information
kwlzn committed Feb 17, 2016
2 parents e0a6cba + 4b94034 commit 883ddf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pex/commands/bdist_pex.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def split_and_strip(entry_point):
except ValueError:
console_scripts = {}

target = os.path.join(self.bdist_dir, name + '-' + version + '.pex')
if self.bdist_all:
# Write all entry points into unversioned pex files.
for script_name in console_scripts:
Expand All @@ -76,7 +77,6 @@ def split_and_strip(entry_point):
self._write(pex_builder, target, script=script_name)
elif name in console_scripts:
# The package has a namesake entry point, so use it.
target = os.path.join(self.bdist_dir, name + '-' + version + '.pex')
log.info('Writing %s to %s' % (name, target))
self._write(pex_builder, target, script=name)
else:
Expand Down

0 comments on commit 883ddf2

Please sign in to comment.