Skip to content

Commit

Permalink
Clean bash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bnorthan committed Jan 1, 2024
1 parent acc24fe commit 5097a9a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
2 changes: 2 additions & 0 deletions python/copylibsconda.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
# installs in editable mode, copying the native libraries to the location they are needed
# NOTE this script needs to be customized for your system and environment name

KERNEL=(`uname -s | tr [A-Z] [a-z]`)
ARCH=(`uname -m | tr [A-Z] [a-z]`)
Expand Down
2 changes: 2 additions & 0 deletions python/editableinstall.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
bash copylibsconda.sh

#!/bin/bash
pip install -e .
bash copylibsconda.sh
19 changes: 6 additions & 13 deletions python/hackinstall.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
#!/bin/bash
# currently unable to get setup.py to copy
# the c library properly using relative path
# so this script is a hack that copies the lib directory
# installs the clij2fft python package then
# deletes the lib directory
# then installs the clij2fft python package in editable mode

# script may also be a useful template to follow if trying to install on your system
# script may be a useful template to follow if trying to install in editable on your system
# but remember to edit editableinstall.sh to point to the correct location of the lib directory
# (i.e. the conda/mamba location on your system)

# first build native code
echo 'building native code'
cd ../native
bash cppbuild.sh
cd ../python

# now copy the libraries so that they are under the python directory
echo 'copying libs'
mkdir lib
cp -r ../lib/* lib
bash pythonbuild.sh

bash editableinstall.sh

0 comments on commit 5097a9a

Please sign in to comment.