Install numpy before building numbuf in setup.py. (#20)

This commit is contained in:
Robert Nishihara
2016-11-12 19:36:47 -08:00
committed by Philipp Moritz
parent d26fbcebbe
commit 488f881d70
2 changed files with 6 additions and 8 deletions
+5 -8
View File
@@ -15,7 +15,11 @@ else
exit 1
fi
if [[ $platform == "macosx" ]]; then
if [[ $platform == "linux" ]]; then
# These commands must be kept in sync with the installation instructions.
sudo apt-get update
sudo apt-get install -y cmake build-essential autoconf libtool python-dev python-numpy libboost-all-dev
elif [[ $platform == "macosx" ]]; then
# check that brew is installed
which -s brew
if [[ $? != 0 ]]; then
@@ -25,13 +29,6 @@ if [[ $platform == "macosx" ]]; then
echo "Updating brew."
brew update
fi
fi
if [[ $platform == "linux" ]]; then
# These commands must be kept in sync with the installation instructions.
sudo apt-get update
sudo apt-get install -y cmake build-essential autoconf libtool python-dev python-numpy python-pip libboost-all-dev
elif [[ $platform == "macosx" ]]; then
# These commands must be kept in sync with the installation instructions.
brew install cmake automake autoconf libtool boost
sudo easy_install pip
+1
View File
@@ -19,5 +19,6 @@ setup(name="numbuf",
packages=find_packages(),
package_data={"numbuf": ["libnumbuf.so"]},
cmdclass={"install": install},
setup_requires=["numpy"],
include_package_data=True,
zip_safe=False)