radare2/sys/python.sh
pancake 866e36b970 * Add sys/dist and sys/python-dist
* Fix for C++ with r_magic.h ?
2011-09-27 14:27:04 +02:00

23 lines
451 B
Bash
Executable File

#!/bin/sh
# find root
cd `dirname $PWD/$0` ; cd ..
. ./sys/CONFIG
cat sys/CONFIG
export PYTHON_VERSION
export PYTHON_CONFIG
echo "Using PYTHON_VERSION ${PYTHON_VERSION}"
PYTHON_CONFIG="python${PYTHON_VERSION}-config"
echo "Using PYTHON_CONFIG ${PYTHON_CONFIG}"
echo
cd r2-bindings
./configure --prefix=/usr --enable-devel --enable=python
cd python
make clean
make
[ ! "$1" = --no-install ] && \
sudo make install PYTHON_VERSION=${PYTHON_VERSION}