Skip to content

Commit

Permalink
Eliminate Conda hack forcing /tmp as temp directory.
Browse files Browse the repository at this point in the history
It wasn't playing well with Docker inside of Conda, new Conda packages shouldn't require this, and older Conda packages need to be caught and rebuilt for Galaxy anyway.
  • Loading branch information
jmchilton committed Mar 16, 2017
1 parent 3e03418 commit b4ae44d
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions planemo/galaxy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,17 +569,7 @@ def _config_directory(ctx, **kwds):
created_config_directory = False
if not config_directory:
created_config_directory = True
config_directory = mkdtemp()
# the following makes sure the transient config_dir path is short
# enough for conda linking (https://github.com/conda/conda-build/pull/877)
if len(config_directory) > 20:
try:
short_config_directory = mkdtemp(dir="/tmp")
os.rmdir(config_directory)
config_directory = short_config_directory
except OSError:
# path doesn't exist or permission denied, keep the long config_dir
pass
config_directory = os.path.realpath(mkdtemp())
try:
yield config_directory
finally:
Expand Down

0 comments on commit b4ae44d

Please sign in to comment.