[Rivet-svn] r4254 - trunk/pyext

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Thu Apr 11 14:46:06 BST 2013


Author: buckley
Date: Thu Apr 11 14:46:06 2013
New Revision: 4254

Log:
Fix Python extension build env treatment

Modified:
   trunk/pyext/Makefile.am

Modified: trunk/pyext/Makefile.am
==============================================================================
--- trunk/pyext/Makefile.am	Thu Apr 11 13:31:14 2013	(r4253)
+++ trunk/pyext/Makefile.am	Thu Apr 11 14:46:06 2013	(r4254)
@@ -1,12 +1,14 @@
+SUBDIRS = rivet .
+
 if ENABLE_PYEXT
 
-SUBDIRS = rivet .
+PYEXT_ENV = CC=$(CC) CXX=$(CXX)
 
 all-local: rivet/rivetwrap_wrap.cc
-	$(ENV) $(PYTHON) setup.py build
+	$(PYEXT_ENV) $(PYTHON) setup.py build
 
 install-exec-local:
-	$(ENV) $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+	$(PYEXT_ENV) $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
 
 ## TODO: Really want DESTDIR here?
 uninstall-local:
@@ -14,7 +16,7 @@
 	rm -rf $(DESTDIR)$(RIVET_PYTHONPATH)/Rivet-*.egg-info
 
 clean-local:
-	$(ENV) $(PYTHON) setup.py clean --all
+	$(PYEXT_ENV) $(PYTHON) setup.py clean --all
 	@rm -f $(top_builddir)/*.pyc
 	@rm -rf $(builddir)/build
 	@rm -rf dist


More information about the Rivet-svn mailing list