We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90bbbe9 commit d350867Copy full SHA for d350867
poncho/src/poncho/package_create.py
@@ -98,7 +98,11 @@ def _copy_run_in_env(env_dir):
98
logger.error("could not find poncho_package_run. Please add it to the PATH.")
99
sys.exit(1)
100
101
- shutil.copy(candidate, f"{env_dir}/env/bin/poncho_package_run")
+ try:
102
+ shutil.copy(candidate, f"{env_dir}/env/bin/poncho_package_run")
103
+ except shutil.SameFileError:
104
+ # ndcctools already in env and conda using hard-links when possible
105
+ pass
106
with open(f"{env_dir}/env/bin/run_in_env", "w") as f:
107
f.write("#! /bin/sh\n")
108
f.write(
0 commit comments