Files
libadjoint/fix-python-install.patch
Dmitry Roshchin a3f4c7864b Accepting request 478992 from home:polyconvex:branches:science
This is an update to the current release of the package as well
as a migration from python2 to python3. Please accept the request
for the prerequisit package dolfin before this.

- update to version 2016.2.0 compatible with dolfin 2016.2.0
  changelog only available in upstream git repository at
  https://bitbucket.org/dolfin-adjoint/libadjoint/commits/tag/v2016.2.0
- refresh patch
  * fix-python-install.patch

OBS-URL: https://build.opensuse.org/request/show/478992
OBS-URL: https://build.opensuse.org/package/show/science/libadjoint?expand=0&rev=4
2017-03-16 14:40:50 +00:00

15 lines
573 B
Diff

---
python/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -23,6 +23,6 @@ if(PYTHONINTERP_FOUND)
# Run `python setup.py install`
install(CODE
- "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} install --prefix=${CMAKE_INSTALL_PREFIX} ${LIBADJOINT_PYTHON_INSTALL_ARGS})"
+ "execute_process(COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} install --prefix=${CMAKE_INSTALL_PREFIX} --root=\$ENV{DESTDIR}/ ${LIBADJOINT_PYTHON_INSTALL_ARGS})"
)
endif()