Skip to content

Commit d4be4ac

Browse files
authored
Merge pull request #76 from logicabrity/clean-up-bin-dir
Clean up bin dir
2 parents 58cbfea + 5ef6d96 commit d4be4ac

6 files changed

+16
-55
lines changed

Diff for: fix_load_path_mac.py renamed to bin/fix_load_path_mac.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
Creates working dylibs on Mac OS X by adding the full path to referenced libraries.
3+
This fixes ImportErrors that may appear starting with SUNDIALS 2.6.
4+
5+
"""
16
import os
27
import glob
38
import re
@@ -27,4 +32,4 @@ def extract_library(so_file):
2732

2833
for so in sos:
2934
extract_library(so)
30-
print("Done for %s!"%so)
35+
print("Done for %s!"%so)

Diff for: bin/install-python-packages.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip install --upgrade cython psutil ipywidgets

Diff for: bin/install-sundials-2.5.sh

-46
This file was deleted.

Diff for: bin/install-ubuntu-packages.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# required to compile fidimag
2-
apt-get install python-pip python-numpy python-dev python-scipy cmake
3-
# required for tests and running it
4-
apt-get install python-pytest python-pyvtk ipython python-matplotlib
2+
deps_compilation="python-pip python-numpy python-dev python-scipy cmake"
3+
4+
# required for tests and running fidimag
5+
deps_live="python-pytest python-pyvtk ipython python-matplotlib"
6+
7+
apt-get install $deps_compilation $deps_live

Diff for: bin/ubuntu_install_script.sh

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
echo "Super user authentication required to add packages (you will be \
22
prompted for confirmation)."
33
sudo bash install-ubuntu-packages.sh
4+
sudo bash install-python-packages.sh
45
bash install-fftw.sh
56
bash install-sundials.sh
6-
sudo pip install cython --upgrade
7-
sudo pip install psutil ipywidgets
87
pushd .. > /dev/null
98
make
109

11-
# Adds Fidimag environment variables to profile.d, if they're not already
12-
# there.
10+
# Adds fidimag environment variables to profile.d, if they're not already there.
1311
FIDIMAG_PROFILE_PATH=/etc/profile.d/fidimag.sh
1412
if [ ! -e "$FIDIMAG_PROFILE_PATH" ]; then
1513
echo "Warning: Adding Fidimag to path at $FIDIMAG_PROFILE_PATH."

Diff for: doc/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ which can be seen by using ``otool -L fidimag/extensions/clib.so``, ::
259259
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
260260
/opt/local/lib/libgcc/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
261261

262-
A solution is to change these path manually with ``install_name_tool``, so we have provided a python script (``fix_load_path_mac.py``) to do this.
262+
A solution is to change these path manually with ``install_name_tool``, so we have provided a python script (``bin/fix_load_path_mac.py``) to do this.
263263
After run the script, the library path is fixed, for example, the output of the cmd ``otool -L fidimag/extensions/clib.so`` gives ::
264264

265265
fidimag/extensions/neb_clib.so:

0 commit comments

Comments
 (0)