diff options
author | bartus | 2019-11-18 16:05:48 +0100 |
---|---|---|
committer | bartus | 2019-11-18 16:05:48 +0100 |
commit | f79162b70c043e3726cc43e6582c2f35f690e477 (patch) | |
tree | bd3f5e69ac563be65645d1eef8a7f98335af19fa | |
parent | ef13d3a9d32311f233213f84425f8fccffe67120 (diff) | |
download | aur-f79162b70c043e3726cc43e6582c2f35f690e477.tar.gz |
Fix python missing outside of build().
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -20,7 +20,6 @@ sha256sums=('SKIP' '87b987f006e45d11cc4dfec2bd37fd2b760fd2bdbf06f48e7d467cbca9b2b301') -_pyver=$(python -c "from sys import version_info; print(\"%d.%d\" % (version_info[0],version_info[1]))") CMAKE_FLAGS=( -DWITH_EMBREE=ON -DCMAKE_BUILD_TYPE=Ship -DCMAKE_INSTALL_PREFIX=/opt/appleseed @@ -32,7 +31,6 @@ CMAKE_FLAGS=( -DWITH_EMBREE=ON -DUSE_STATIC_OCIO=OFF -DUSE_STATIC_OIIO=OFF -DUSE_STATIC_OSL=OFF - -DPYTHON3_INCLUDE_DIR=/usr/include/python${_pyver}m -DWARNINGS_AS_ERRORS=OFF ) @@ -53,6 +51,8 @@ prepare() { } build() { +_pyver=$(python -c "from sys import version_info; print(\"%d.%d\" % (version_info[0],version_info[1]))") +CMAKE_FLAGS+=(-DPYTHON3_INCLUDE_DIR=/usr/include/python${_pyver}) cd ${pkgname} mkdir -p build cd build |