提交 eba76a12 编写于 作者: B Ben

Mostly Python Distutils update

上级 2ed365a7
pyexec_LTLIBRARIES=libpvnrt.la
libpvnrt_la_SOURCES=ideal.c
pyexec_LIBRARIES=libpvnrt.a
libpvnrt_a_SOURCES=ideal.c
SUBDIRS=.
......
......@@ -4,13 +4,13 @@
# then the usual ./configure; make; sudo make install.
if [ -e autodemo ]; then sudo rm -r autodemo; fi
if [ -e autodemo ]; then rm -r autodemo; fi
mkdir -p autodemo
cp ../ideal.h ../ideal.c Makefile.am configure.ac autodemo/
cd autodemo
touch NEWS README AUTHORS ChangeLog #still cheating.
mkdir py
cp ../setup.py ../ideal.py.c py/
cp ../setup.py.in ../ideal.py.c py/
cp ../Makefile.py.am py/Makefile.am
autoreconf -iv
......
......@@ -14,5 +14,5 @@ if test "$PYTHON" != : ; then
AC_CONFIG_SUBDIRS([py])
fi
AC_CONFIG_FILES([Makefile py/Makefile])
AC_CONFIG_FILES([Makefile py/Makefile py/setup.py])
AC_OUTPUT
......@@ -2,10 +2,10 @@ from distutils.core import setup, Extension
py_modules= ['pvnrt']
Emodule = Extension('pvnrt',
libraries=['pvnrt'],
library_dirs=['..'],
sources = ['ideal.py.c'])
Emodule = Extension('pvnrt', ['ideal.py.c']
, library_dirs=['@srcdir@/..']
, libraries=['pvnrt']
)
setup (name = 'pvnrt',
#provides='pvnrt',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册