Skip to content

Commit b4ae44d

Browse files
committed
Eliminate Conda hack forcing /tmp as temp directory.
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.
1 parent 3e03418 commit b4ae44d

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

planemo/galaxy/config.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -569,17 +569,7 @@ def _config_directory(ctx, **kwds):
569569
created_config_directory = False
570570
if not config_directory:
571571
created_config_directory = True
572-
config_directory = mkdtemp()
573-
# the following makes sure the transient config_dir path is short
574-
# enough for conda linking (https://github.com/conda/conda-build/pull/877)
575-
if len(config_directory) > 20:
576-
try:
577-
short_config_directory = mkdtemp(dir="/tmp")
578-
os.rmdir(config_directory)
579-
config_directory = short_config_directory
580-
except OSError:
581-
# path doesn't exist or permission denied, keep the long config_dir
582-
pass
572+
config_directory = os.path.realpath(mkdtemp())
583573
try:
584574
yield config_directory
585575
finally:

0 commit comments

Comments
 (0)