mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-22 20:35:44 +01:00
rename the front-end Python module
This commit is contained in:
parent
f0bccee32d
commit
9cc552409f
@ -10,7 +10,7 @@ echo "" >> trexio.h
|
||||
|
||||
cat prefix_s_front.h > trexio_s.h
|
||||
cat prefix_fortran.f90 > trexio_f.f90
|
||||
cat prefix_python.py > trexio.py
|
||||
cat prefix_python.py > trexio_api.py
|
||||
|
||||
# c front end
|
||||
cat populated/pop_*.c >> trexio.c
|
||||
@ -23,7 +23,7 @@ cat helper_fortran.f90 >> trexio_f.f90
|
||||
cat populated/pop_*.fh_90 >> trexio_f.f90
|
||||
|
||||
# python front end
|
||||
cat populated/pop_*.py >> trexio.py
|
||||
cat populated/pop_*.py >> trexio_api.py
|
||||
|
||||
# suffixes
|
||||
cat suffix_s_front.h >> trexio_s.h
|
||||
|
@ -13,15 +13,18 @@ readonly SRC=${TREXIO_ROOT}/src
|
||||
readonly INCLUDIR=${TREXIO_ROOT}/include
|
||||
readonly TOOLS=${TREXIO_ROOT}/tools
|
||||
readonly PYDIR=${TREXIO_ROOT}/python
|
||||
readonly PYTREXIODIR=${PYDIR}/trexio
|
||||
|
||||
# We want the script to crash on the 1st error:
|
||||
set -e
|
||||
|
||||
# Create src directory in the python folder if not yet done
|
||||
# Create src and trexio directories in the python folder if not yet done
|
||||
mkdir -p ${PYDIR}/src
|
||||
mkdir -p ${PYTREXIODIR}
|
||||
|
||||
# Copy all the source code and header files in the corresponding python directory
|
||||
cp ${SRC}/*.py ${PYDIR}
|
||||
mv ${SRC}/pytrexio.py ${PYTREXIODIR}
|
||||
mv ${SRC}/trexio_api.py ${PYTREXIODIR}
|
||||
cp ${SRC}/*.c ${PYDIR}/src
|
||||
cp ${SRC}/*.h ${PYDIR}/src
|
||||
cp ${INCLUDIR}/trexio.h ${PYDIR}/src
|
||||
|
Loading…
Reference in New Issue
Block a user