build.python 712 字节
Newer Older
B
Ben 已提交
1 2 3 4 5 6
# This is a script to set up the Python demo. As per the text, there is
# a main directory with the C code, and a subdirectory with the Python part.
# Once those components are set up, run autoreconf to generate the components,
# then the usual ./configure; make; sudo make install.


B
Ben 已提交
7
if [ -e autodemo ]; then rm -r autodemo; fi
B
Ben 已提交
8 9 10 11 12
mkdir -p autodemo
cp ../ideal.h ../ideal.c Makefile.am configure.ac autodemo/
cd autodemo
touch NEWS README AUTHORS ChangeLog    #still cheating.
mkdir py
B
Ben 已提交
13
cp ../setup.py.in ../ideal.py.c py/
B
Ben 已提交
14 15 16 17 18 19 20 21 22 23
cp ../Makefile.py.am py/Makefile.am

autoreconf -iv

echo ----------configure------------
./configure
echo ----------make------------
make
echo ----------install------------
sudo make install