Skip to content
Snippets Groups Projects
Commit 8c1ca970 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

Finally. Needs to write setup.cfg file to make /usr/local and /usr prefix

consistent.
parent 3fdd9e9c
No related branches found
No related tags found
No related merge requests found
sudo : required
dist : trusty
group : edge
compiler:
- gcc
......
......@@ -13,7 +13,7 @@ override_dh_auto_clean:
# consider using -DUSE_VERSIONED_DIR=ON if backporting
override_dh_auto_configure:
cmake -DCMAKE_INSTALL_PREFIX=debian/tmp/usr
cmake -DCMAKE_INSTALL_PREFIX=debian/tmp/usr -DCMAKE_VERSION=3.2.git
override_dh_auto_build:
make VERBOSE=0 -j`nproc`
......
......@@ -461,11 +461,12 @@ endif( )
# get platform and arch using python.
# NOTE: creating bdist or bdist_dump uses /usr and /usr/local on rpm and deb
# based unix respectively. Not a great situation to be in. We are using
# bdist_egg and then copy everything from egg/.
# based unix respectively. Not a great situation to be in. Need to write a
# setup.cfg file to fix the prefix in all cases.
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/python/setup.cfg "[install]\nprefix=/usr" )
find_package( PythonInterp REQUIRED)
add_custom_target( bdist
COMMAND ${PYTHON_EXECUTABLE} setup.cmake.py bdist_egg -d ${PYMOOSE_BDIST_DIR}
COMMAND ${PYTHON_EXECUTABLE} setup.cmake.py bdist_dumb -d ${PYMOOSE_BDIST_DIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/python
COMMENT "Genearating bdist using setup.cmake.py."
VERBATIM
......
......@@ -25,6 +25,7 @@ try:
except Exception as e:
from distutils.core import setup
# Read version from VERSION created by cmake file. This file must be present for
# setup.cmake.py to work perfectly.
script_dir = os.path.dirname( os.path.abspath( __file__ ) )
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment