Skip to content

Commit

Permalink
Make sure that compile.sh works both from python setup and in the rpg…
Browse files Browse the repository at this point in the history
…_cpp folder
  • Loading branch information
twom committed Apr 8, 2024
1 parent 79fc9c6 commit e13e4bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Empty file modified rpg_cpp/.gitignore
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion rpg_cpp/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ $# -eq 0 ]; then
echo "Compile third party librares"

# get current path and append rpg_cpp
rpg_path=`pwd`/rpg_cpp
rpg_path=`pwd`

# Entering folder with compressed third party (fftw and nifti) libraries
cd $rpg_path/thirdparty/
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def change_permissions_recursive(path, mode):
for file in [os.path.join(root, f) for f in files]:
os.chmod(file, mode)


change_permissions_recursive('rpg_cpp', 0o777)
subprocess.run(['./rpg_cpp/compile.sh'], shell=True)
subprocess.run(['./compile.sh'], shell=True, cwd='rpg_cpp')

setup(
name ='designer2',
Expand Down

0 comments on commit e13e4bf

Please sign in to comment.