提交 eba76a12 编写于 作者: B Ben

Mostly Python Distutils update

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