Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

Commit

Permalink
find and use system python
Browse files Browse the repository at this point in the history
  • Loading branch information
jsturdy committed Jun 14, 2017
1 parent 50036d6 commit e3ebf87
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions config/mfDefs.gem
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,13 @@ UserStaticLinkFlags =
UserDynamicLinkFlags =

IncludeDirs+=$(XDAQ_ROOT)/include
IncludeDirs+=/usr/local/include/python2.7
IncludeDirs+=/usr/include/python2.7

## Python
PYTHON_VERSION ?= $(shell python -c "import distutils.sysconfig;print distutils.sysconfig.get_python_version()")
PYTHON_INCLUDE_PREFIX ?= $(shell python -c "import distutils.sysconfig;print distutils.sysconfig.get_python_inc()")

IncludeDirs+=${PYTHON_INCLUDE_PREFIX}
# IncludeDirs+=/usr/include/python2.7

LibraryDirs+=$(XDAQ_ROOT)/lib
LibraryDirs+=/usr/local/lib
Expand All @@ -52,7 +57,7 @@ DependentLibraryDirs+=/usr/local/lib

DependentLibraries+=asyncresolv boost_system config log4cplus
DependentLibraries+=numa toolbox uuid xcept xdaq2rc xerces-c
DependentLibraries+=python2.7
DependentLibraries+=python${PYTHON_VERSION}

#Libraries+= log4cplus config xcept xerces-c numa toolbox asyncresolv uuid

Expand Down

0 comments on commit e3ebf87

Please sign in to comment.