Skip to content

Commit 1c883ea

Browse files
authored
Merge pull request #292 from djhoese/bugfix-osx-build
Fix bundle script having wrong permissions and activation path
2 parents 42a5cce + 65c3361 commit 1c883ea

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ matrix:
2828
env: PYTHON_VERSION=3.7
2929
language: c
3030
before_install:
31-
- openssl aes-256-cbc -K $encrypted_f8c2318670e7_key -iv $encrypted_f8c2318670e7_iv
32-
-in id_rsa_sift_sftp.enc -out /tmp/sftp_rsa -d
31+
- if [ ! -z $encrypted_f8c2318670e7_iv ]; then
32+
openssl aes-256-cbc -K $encrypted_f8c2318670e7_key -iv $encrypted_f8c2318670e7_iv -in id_rsa_sift_sftp.enc -out /tmp/sftp_rsa -d;
33+
fi
3334
install:
3435
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
3536
- source ci-helpers/travis/setup_conda.sh

build_conda_pack.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ def main():
5555
script_dir = os.path.realpath(os.path.dirname(__file__))
5656
if 'nux' in sys.platform:
5757
script = os.path.join(script_dir, 'bundle_scripts', 'SIFT.sh')
58-
shutil.copyfile(script, os.path.join(dst, 'SIFT.sh'))
58+
shutil.copy(script, os.path.join(dst, 'SIFT.sh'))
5959
elif 'darwin' in sys.platform:
6060
script = os.path.join(script_dir, 'bundle_scripts', 'SIFT.sh')
61-
shutil.copyfile(script, os.path.join(dst, 'SIFT.command'))
61+
shutil.copy(script, os.path.join(dst, 'SIFT.command'))
6262
elif 'win' in sys.platform:
6363
script = os.path.join(script_dir, 'bundle_scripts', 'SIFT.bat')
64-
shutil.copyfile(script, os.path.join(dst, 'SIFT.bat'))
64+
shutil.copy(script, os.path.join(dst, 'SIFT.bat'))
6565
else:
6666
raise RuntimeError(f"Unknown platform: {sys.platform}")
6767

bundle_scripts/SIFT.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ unset PYTHONPATH
1616
export PYTHONNOUSERSITE=1
1717

1818
# Activate the conda-pack'd environment
19-
source $BASE/activate
19+
source $BASE/bin/activate
2020

2121
# Check if we already ran conda-unpack
2222
install_signal="${BASE}/.installed"

0 commit comments

Comments
 (0)