diff --git a/constructor/header.sh b/constructor/header.sh index e4686478..e3f4cd2e 100644 --- a/constructor/header.sh +++ b/constructor/header.sh @@ -431,7 +431,7 @@ cd "$PREFIX" unset PYTHON_SYSCONFIGDATA_NAME _CONDA_PYTHON_SYSCONFIGDATA_NAME # the first binary payload: the standalone conda executable -CONDA_EXEC="$PREFIX/conda.exe" +CONDA_EXEC="$PREFIX/_conda.exe" extract_range $boundary0 $boundary1 > "$CONDA_EXEC" chmod +x "$CONDA_EXEC" @@ -499,7 +499,6 @@ POSTCONDA="$PREFIX/postconda.tar.bz2" "$CONDA_EXEC" constructor --prefix "$PREFIX" --extract-tarball < "$POSTCONDA" || exit 1 rm -f "$POSTCONDA" -rm -f $PREFIX/conda.exe rm -f $PREFIX/pkgs/env.txt rm -rf $PREFIX/install_tmp diff --git a/constructor/osx/post_extract.sh b/constructor/osx/post_extract.sh index 110cfe01..3768237d 100644 --- a/constructor/osx/post_extract.sh +++ b/constructor/osx/post_extract.sh @@ -9,7 +9,7 @@ PREFIX=$(cd "$PREFIX"; pwd) export PREFIX echo "PREFIX=$PREFIX" -CONDA_EXEC="$PREFIX/conda.exe" +CONDA_EXEC="$PREFIX/_conda.exe" chmod +x "$CONDA_EXEC" # Create a blank history file so conda thinks this is an existing env @@ -39,7 +39,6 @@ fi mv "$PREFIX/pkgs/conda-meta/history" "$PREFIX/conda-meta/history" # Cleanup! -rm -f "$CONDA_EXEC" rm -f "$PREFIX/env.txt" find "$PREFIX/pkgs" -type d -empty -exec rmdir {} \; 2>/dev/null || : diff --git a/constructor/osxpkg.py b/constructor/osxpkg.py index 9e283e61..3e4afcec 100644 --- a/constructor/osxpkg.py +++ b/constructor/osxpkg.py @@ -190,7 +190,7 @@ def create(info, verbose=False): # See http://stackoverflow.com/a/11487658/161801 for how all this works. # The main package contains the prepopulated package cache, the modified - # conda-meta metadata staged into pkgs/conda-meta, and conda.exe + # conda-meta metadata staged into pkgs/conda-meta, and _conda.exe fresh_dir(PACKAGE_ROOT) fresh_dir(SCRIPTS_DIR) pkgs_dir = join(prefix, 'pkgs') @@ -198,7 +198,7 @@ def create(info, verbose=False): preconda.write_files(info, pkgs_dir) for dist in info['_dists']: os.link(join(CACHE_DIR, dist), join(pkgs_dir, dist)) - shutil.copyfile(info['_conda_exe'], join(prefix, "conda.exe")) + shutil.copyfile(info['_conda_exe'], join(prefix, "_conda.exe")) # This script checks to see if the install location already exists move_script(join(OSX_DIR, 'preinstall.sh'), join(SCRIPTS_DIR, 'preinstall'), info) # This script performs the full installation