nlopt: Port to Python 3
This commit is contained in:
@@ -4,12 +4,12 @@ _realname=nlopt
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
|
||||
pkgver=2.6.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="A library for nonlinear optimization (mingw-w64)"
|
||||
arch=('any')
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
|
||||
"${MINGW_PACKAGE_PREFIX}-python2"
|
||||
"${MINGW_PACKAGE_PREFIX}-python2-numpy"
|
||||
"${MINGW_PACKAGE_PREFIX}-python3"
|
||||
"${MINGW_PACKAGE_PREFIX}-python3-numpy"
|
||||
"${MINGW_PACKAGE_PREFIX}-swig")
|
||||
url='https://nlopt.readthedocs.io/en/latest/'
|
||||
license=('LGPLv2.1+')
|
||||
@@ -31,6 +31,7 @@ build() {
|
||||
"${MINGW_PREFIX}/bin/cmake.exe" -Wno-dev \
|
||||
-G"MSYS Makefiles" \
|
||||
-DCMAKE_INSTALL_PREFIX="${MINGW_PREFIX}" \
|
||||
-DPYTHON_EXECUTABLE="${MINGW_PREFIX}/bin/python3" \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-DNLOPT_PYTHON=ON \
|
||||
-DNLOPT_SWIG=ON \
|
||||
|
||||
Reference in New Issue
Block a user