The Boost.Python module is building again.
This commit is contained in:
parent
ec1518d538
commit
0db8d69796
3 changed files with 36 additions and 9 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,6 +3,7 @@
|
|||
*.elc
|
||||
*.la
|
||||
*.lo
|
||||
*.loT
|
||||
*.o
|
||||
*~
|
||||
.deps/
|
||||
|
|
@ -20,6 +21,7 @@
|
|||
/acconf.h.in
|
||||
/acconf.h.in~
|
||||
/aclocal.m4
|
||||
/amounts.so
|
||||
/autom4te.cache
|
||||
/config.guess
|
||||
/config.log
|
||||
|
|
|
|||
38
Makefile.am
38
Makefile.am
|
|
@ -125,11 +125,15 @@ noinst_PROGRAMS = amounts.so
|
|||
amounts_so_SOURCES = amounts.cc fdstream.hpp
|
||||
|
||||
amounts.so: amounts.cc libamounts.la
|
||||
CFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -L. -L.libs" \
|
||||
python setup.py build --build-lib=.
|
||||
CFLAGS="$(CPPFLAGS) -I$(srcdir) $(libamounts_la_CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \
|
||||
LDFLAGS="$(LDFLAGS) -L$(top_builddir) -L$(top_builddir)/.libs" \
|
||||
ARCHFLAGS="$(ARCHFLAGS)" SRCDIR="$(srcdir)" \
|
||||
python setup.py build --build-lib=$(top_builddir)
|
||||
|
||||
install-exec-hook:
|
||||
CFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -L. -L.libs" \
|
||||
CFLAGS="$(CPPFLAGS) -I$(srcdir) $(libamounts_la_CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \
|
||||
LDFLAGS="$(LDFLAGS) -L$(top_builddir) -L$(top_builddir)/.libs" \
|
||||
ARCHFLAGS="$(ARCHFLAGS)" SRCDIR="$(srcdir)" \
|
||||
python setup.py install --prefix=$(prefix)
|
||||
|
||||
endif
|
||||
|
|
@ -146,9 +150,29 @@ RegressionTests:
|
|||
|
||||
######################################################################
|
||||
|
||||
release:
|
||||
make -j3 distcheck \
|
||||
CPPFLAGS="-I/usr/local/include -I/opt/local/include " \
|
||||
LDFLAGS="-L/usr/local/lib -L/opt/local/lib"
|
||||
copy-sources:
|
||||
-mkdir /tmp/ledger
|
||||
rsync -av --delete $(srcdir)/.git/ /tmp/ledger/.git/
|
||||
(cd /tmp/ledger; git reset --hard HEAD; git clean -x -d -f)
|
||||
|
||||
release: copy-sources
|
||||
(cd /tmp/ledger; ./acprep --local && \
|
||||
make -j3 \
|
||||
CPPFLAGS="-I/usr/local/include -I/opt/local/include" \
|
||||
LDFLAGS="-L/usr/local/lib -L/opt/local/lib" \
|
||||
ARCHFLAGS="-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk" \
|
||||
CXXFLAGS="-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk" \
|
||||
LDFLAGS="$LDFLAGS -arch i386 -arch ppc -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk" \
|
||||
DISTCHECK_CONFIGURE_FLAGS="--disable-dependency-tracking")
|
||||
|
||||
release-distcheck: copy-sources
|
||||
(cd /tmp/ledger; ./acprep --local && \
|
||||
make -j3 distcheck \
|
||||
CPPFLAGS="-I/usr/local/include -I/opt/local/include" \
|
||||
LDFLAGS="-L/usr/local/lib -L/opt/local/lib" \
|
||||
ARCHFLAGS="-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk" \
|
||||
CXXFLAGS="-arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.5.sdk" \
|
||||
LDFLAGS="$LDFLAGS -arch i386 -arch ppc -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk" \
|
||||
DISTCHECK_CONFIGURE_FLAGS="--disable-dependency-tracking")
|
||||
|
||||
# Makefile.am ends here
|
||||
|
|
|
|||
5
setup.py
5
setup.py
|
|
@ -4,7 +4,8 @@ from distutils.core import setup, Extension
|
|||
|
||||
import os
|
||||
|
||||
libs = ["amounts", "boost_python", "gmp"]
|
||||
defines = [('PYTHON_MODULE', 1)]
|
||||
libs = ["amounts", "boost_python", "gmp"]
|
||||
|
||||
setup(name = "Amounts",
|
||||
version = "2.6.1",
|
||||
|
|
@ -13,6 +14,6 @@ setup(name = "Amounts",
|
|||
author_email = "johnw@newartisans.com",
|
||||
url = "http://www.newartisans.com/johnw/",
|
||||
ext_modules = [
|
||||
Extension("amounts", ["amounts.cc"],
|
||||
Extension("amounts", [os.path.join(os.environ['SRCDIR'], "amounts.cc")],
|
||||
define_macros = [('PYTHON_MODULE', 1)],
|
||||
libraries = libs)])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue