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
|
*.elc
|
||||||
*.la
|
*.la
|
||||||
*.lo
|
*.lo
|
||||||
|
*.loT
|
||||||
*.o
|
*.o
|
||||||
*~
|
*~
|
||||||
.deps/
|
.deps/
|
||||||
|
|
@ -20,6 +21,7 @@
|
||||||
/acconf.h.in
|
/acconf.h.in
|
||||||
/acconf.h.in~
|
/acconf.h.in~
|
||||||
/aclocal.m4
|
/aclocal.m4
|
||||||
|
/amounts.so
|
||||||
/autom4te.cache
|
/autom4te.cache
|
||||||
/config.guess
|
/config.guess
|
||||||
/config.log
|
/config.log
|
||||||
|
|
|
||||||
34
Makefile.am
34
Makefile.am
|
|
@ -125,11 +125,15 @@ noinst_PROGRAMS = amounts.so
|
||||||
amounts_so_SOURCES = amounts.cc fdstream.hpp
|
amounts_so_SOURCES = amounts.cc fdstream.hpp
|
||||||
|
|
||||||
amounts.so: amounts.cc libamounts.la
|
amounts.so: amounts.cc libamounts.la
|
||||||
CFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS) -L. -L.libs" \
|
CFLAGS="$(CPPFLAGS) -I$(srcdir) $(libamounts_la_CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)" \
|
||||||
python setup.py build --build-lib=.
|
LDFLAGS="$(LDFLAGS) -L$(top_builddir) -L$(top_builddir)/.libs" \
|
||||||
|
ARCHFLAGS="$(ARCHFLAGS)" SRCDIR="$(srcdir)" \
|
||||||
|
python setup.py build --build-lib=$(top_builddir)
|
||||||
|
|
||||||
install-exec-hook:
|
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)
|
python setup.py install --prefix=$(prefix)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
@ -146,9 +150,29 @@ RegressionTests:
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
release:
|
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 \
|
make -j3 distcheck \
|
||||||
CPPFLAGS="-I/usr/local/include -I/opt/local/include" \
|
CPPFLAGS="-I/usr/local/include -I/opt/local/include" \
|
||||||
LDFLAGS="-L/usr/local/lib -L/opt/local/lib"
|
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
|
# Makefile.am ends here
|
||||||
|
|
|
||||||
3
setup.py
3
setup.py
|
|
@ -4,6 +4,7 @@ from distutils.core import setup, Extension
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
defines = [('PYTHON_MODULE', 1)]
|
||||||
libs = ["amounts", "boost_python", "gmp"]
|
libs = ["amounts", "boost_python", "gmp"]
|
||||||
|
|
||||||
setup(name = "Amounts",
|
setup(name = "Amounts",
|
||||||
|
|
@ -13,6 +14,6 @@ setup(name = "Amounts",
|
||||||
author_email = "johnw@newartisans.com",
|
author_email = "johnw@newartisans.com",
|
||||||
url = "http://www.newartisans.com/johnw/",
|
url = "http://www.newartisans.com/johnw/",
|
||||||
ext_modules = [
|
ext_modules = [
|
||||||
Extension("amounts", ["amounts.cc"],
|
Extension("amounts", [os.path.join(os.environ['SRCDIR'], "amounts.cc")],
|
||||||
define_macros = [('PYTHON_MODULE', 1)],
|
define_macros = [('PYTHON_MODULE', 1)],
|
||||||
libraries = libs)])
|
libraries = libs)])
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue