1
0
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
Horea Christian f12e08a643 Using distutils eclass directly for the Python subpackage 2024-01-18 02:15:03 -05:00
Horea Christian ca35e3c4a7 Using eclass functions for python install 2024-01-18 01:11:01 -05:00
Horea Christian da9ddb9921 More eclass functions 2024-01-18 00:55:21 -05:00
1 changed files with 22 additions and 10 deletions

View File

@ -79,7 +79,8 @@ src_configure() {
fi
export CFLAGS="-pthread ${CFLAGS}"
export GIT_REPO_VERSION=3.0.1.1
export DO_NOT_USE_PIP=true
#export DO_NOT_USE_PIP=true
#export EXPLICIT_AFNIPY_INSTALL=false
#export LDFLAGS="-lpthread ${LDFLAGS}"
#-CC="$(tc-getCC)"
#-DFETCHCONTENT_SOURCE_DIR_GTS="${WORKDIR}/${P}/gts-${GTS_HASH}"
@ -101,8 +102,8 @@ src_configure() {
-DCOMP_GUI=ON
-DCOMP_PLUGINS=ON
-DUSE_OMP=ON
#-DCOMP_PYTHON=OFF
-DCOMP_PYTHON=ON
-DCOMP_PYTHON=OFF
#-DCOMP_PYTHON=ON
#-DSTANDARD_PYTHON_INSTALL=OFF
#-DPython_FIND_VIRTUALENV=STANDARD
#-DPython_FIND_STRATEGY=LOCATION
@ -110,12 +111,17 @@ src_configure() {
)
#-DBUILD_SHARED_LIBS=OFF
tc-export CC
python_foreach_impl cmake_src_configure
python_foreach_impl python_optimize
cmake_src_configure
#python_foreach_impl cmake_src_configure
#python_foreach_impl python_optimize
}
src_compile() {
python_foreach_impl cmake_src_compile
#python_foreach_impl cmake_src_compile
cmake_src_compile
pushd src/python_scripts
distutils-r1_src_compile
popd
#cmake_src_compile
#cd ../afni-9999_build
#default
@ -125,13 +131,19 @@ src_compile() {
#/work/afni-9999/nifti_clib-65f801b9c2f1f15f4de4a19d45e6595c25765632
src_install() {
cd ../afni-9999_build
DESTDIR=${D} eninja install
#python_foreach_impl cmake_src_install
#python_foreach_impl python_optimize
cmake_src_install
pushd src/python_scripts
distutils-r1_src_install
popd
#cd ../afni-9999_build
#DESTDIR=${D} eninja install
# File collision, upstream confirmation here:
# https://github.com/afni/afni/issues/558#issuecomment-1887693900
cd ${D}
pwd
ls -lah
#pwd
#ls -lah
#exit
rm usr/bin/mpeg_encode
}