Skip to content

Commit

Permalink
Fix bdist_pex interpreter cache directory (#286)
Browse files Browse the repository at this point in the history
Running bdist_pex would result in the creation of a directory literally named '{pex_root}'.

This fixes it by following behavior similar to that found in pex.bin.pex:main
  • Loading branch information
brbsix authored and kwlzn committed Jul 13, 2016
1 parent 09efe0e commit dbdbf85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pex/commands/bdist_pex.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def run(self):
# Update cache_dir with pex_root in case this is being called directly.
if options.cache_dir:
options.cache_dir = make_relative_to_root(options.cache_dir)
options.interpreter_cache_dir = make_relative_to_root(options.interpreter_cache_dir)

if options.entry_point or options.script:
die('Must not specify entry_point or script to --pex-args')
Expand Down

0 comments on commit dbdbf85

Please sign in to comment.