Skip to content

Commit

Permalink
Updated SConstruct to handle library paths on Vagrant Ubuntu VMs (for…
Browse files Browse the repository at this point in the history
… Linux binary-distribution

generation).
  • Loading branch information
perwin committed Jul 9, 2019
1 parent dc0b30e commit 77dfd22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ os_type = platform.system()
# dl [Linux, if using loguru for logging]
# cfitsio
# -- if static, then on macOS we must link with curl [part of system]
# -- for Linux, we use out compiled static-library version of cfitsio
# -- for Linux, we use our compiled static-library version of cfitsio
# (not Ubuntu's), so we don't need any extra libraries
# fftw3, fftw3_threads
# [gsl, gslcblas]
Expand All @@ -105,7 +105,7 @@ os_type = platform.system()

MAC_STATIC_LIBS_PATH = "/usr/local/lib/"
# Debian/Ubuntu standard x86-64 package installation path
LINUX_UBUNTU_STATIC_LIBS_PATH = "/usr/lib/x86_64-linux-gnu/"
LINUX_UBUNTU_STATIC_LIBS_PATH = "/usr/local/lib/"
libDirs = {"Darwin": MAC_STATIC_LIBS_PATH, "Linux": LINUX_UBUNTU_STATIC_LIBS_PATH}
extraSharedLibs_static_cfitsio = {"Darwin": ["curl"], "Linux": []}

Expand All @@ -121,6 +121,8 @@ if os_type == "Linux":
# cfitsio weirdness: if we link to the static-library version, then we
# must also link to the (shared library) libcurl on Mac;
# for Linux, we link to our pre-compiled static library in /usr/local/lib
# Also, static-library path is different than for other static libraries on Linux
# VM installation.
STATIC_CFITSIO_LIBRARY_FILE = File(libDirs[os_type] + "libcfitsio.a")
BASE_SHARED_LIBS += extraSharedLibs_static_cfitsio[os_type]

Expand Down
4 changes: 2 additions & 2 deletions make_export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ rm imfit-export.tar.gz
rm -rf imfit-export
hg clone imfit imfit-export
tar -cf imfit-export.tar imfit-export && gzip imfit-export.tar
cp imfit-export.tar.gz ${linux_vm_dest1}
cp imfit-export.tar.gz ${linux_vm_dest2}
cp imfit-export.tar.gz ${linux_vm_dest64}
cp imfit-export.tar.gz ${linux_vm_dest32}

0 comments on commit 77dfd22

Please sign in to comment.