-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
#!/bin/bash | ||
export LIBRARY_PATH=${PREFIX}/lib | ||
export LD_LIBRARY_PATH=${PREFIX}/lib | ||
export CPATH=${PREFIX}/include | ||
export C_INCLUDE_PATH=${PREFIX}/include | ||
export CPLUS_INCLUDE_PATH=${PREFIX}/include | ||
export CPP_INCLUDE_PATH=${PREFIX}/include | ||
export CXX_INCLUDE_PATH=${PREFIX}/include | ||
#cmake -H. -Bbuild -DPYTHON_EXECUTABLE:FILEPATH=$PYTHON -DCMAKE_BUILD_TYPE=Generic -DEXTRA_FLAGS='-march=sandybridge -Ofast -Og' | ||
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Generic -DEXTRA_FLAGS='-march=sandybridge -Ofast' | ||
cmake --build build | ||
|
||
mkdir -p $PREFIX/bin | ||
mv bin/* $PREFIX/bin | ||
|
||
export INCLUDES="-I${PREFIX}/include" | ||
export LIBPATH="-L${PREFIX}/lib" | ||
export LDFLAGS="${LDFLAGS} -L${PREFIX}/lib" | ||
export CXXFLAGS="${CXXFLAGS} -O3 -I${PREFIX}/include" | ||
|
||
if [[ `uname` == "Darwin" ]]; then | ||
export CONFIG_ARGS="-DCMAKE_FIND_FRAMEWORK=NEVER -DCMAKE_FIND_APPBUNDLE=NEVER" | ||
else | ||
export CONFIG_ARGS="" | ||
fi | ||
|
||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Generic \ | ||
-DCMAKE_INSTALL_PREFIX="${PREFIX}" -DCMAKE_CXX_COMPILER="${CXX}" \ | ||
-DCMAKE_CXX_FLAGS="${CXXFLAGS}" -DEXTRA_FLAGS='-march=sandybridge -Ofast' \ | ||
"${CONFIG_ARGS}" | ||
cmake --build build --target install -j "${CPU_COUNT}" -v | ||
|
||
#mv bin/* ${PREFIX}/bin | ||
PYVER=`python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))'` | ||
mkdir -p $PREFIX/lib/python$PYVER/site-packages | ||
cp lib/*cpython* $PREFIX/lib/python$PYVER/site-packages | ||
cp lib/* $PREFIX/lib | ||
#set -x | ||
#python -c "import sys; sys.path.append('./lib'); import odgi_ffi" | ||
#python -c "import sys; sys.path.append('./lib'); import odgi" | ||
mkdir -p "${PREFIX}/lib/python${PYVER}/site-packages" | ||
cp -rf lib/*cpython* "${PREFIX}/lib/python${PYVER}/site-packages" | ||
cp -rf lib/* "${PREFIX}/lib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.