[Rivet-svn] r4236 - trunk/pyext

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Apr 4 17:31:30 BST 2013


Author: buckley
Date: Thu Apr  4 17:31:30 2013
New Revision: 4236

Log:
Python extension build system tweaks

Modified:
   trunk/pyext/setup.py.in

Modified: trunk/pyext/setup.py.in
==============================================================================
--- trunk/pyext/setup.py.in	Wed Apr  3 16:16:57 2013	(r4235)
+++ trunk/pyext/setup.py.in	Thu Apr  4 17:31:30 2013	(r4236)
@@ -3,7 +3,7 @@
 """This is a simple SWIG wrapper on the main steering interface of
 the Rivet event simulation analysis library. It is used to create, query and
 use the Rivet C++ analysis classes from a Python program, of which the prime
-example is Rivet's own command line interface.
+customer is Rivet's own command line interface.
 """
 
 from distutils.core import setup, Extension
@@ -15,17 +15,18 @@
 incdir_build = os.path.abspath('@top_builddir@/include')
 libdir = os.path.abspath('@top_builddir@/src/.libs')
 libdir_yaml = '@YAML_CPPLIBPATH@'
+
+# TODO: remove along with the yaml-cpp bundling
 if not libdir_yaml:
     libdir_yaml = '@top_builddir@/src/Tools/yaml-cpp/.libs'
-cxxargs = '@CXXFLAGS@'.split()
-ldargs = '@LDFLAGS@'.split()
+
 ext = Extension('_rivetwrap',
                 [wrapsrc],
                 define_macros = [('SWIG_TYPE_TABLE', 'hepmccompat')],
-                include_dirs=[incdir_src, incdir_build, '@HEPMCINCPATH@', '@BOOSTINCPATH@', '@GSLINCPATH@'],
+                include_dirs=[incdir_src, incdir_build, '@HEPMCINCPATH@', '@GSLINCPATH@'],
+                extra_compile_args= "-I at prefix@/include @BOOST_CPPFLAGS@ @CXXFLAGS@".split(),
                 library_dirs=[libdir, libdir_yaml, '@HEPMCLIBPATH@'],
-                extra_compile_args = cxxargs,
-                extra_link_args = ldargs,
+                extra_link_args = "-L at prefix@/lib @LDFLAGS@".split(),
                 libraries=['HepMC', 'Rivet'])
 
 ## Setup definition


More information about the Rivet-svn mailing list