Upgrade distribute to the latest stable version of setuptools
'distribute' is the ancestor of 'setuptools', and many packages require setuptools to be installed. Upgrade of MySQL-python from 1.2.4 to 1.2.5 is required because of an incompatibility with setuptools>0.7.
This commit is contained in:
committed by
David Baumgold
parent
1574650f28
commit
95ebf7f675
@@ -4,5 +4,5 @@ setup(
|
||||
name="capa",
|
||||
version="0.1",
|
||||
packages=find_packages(exclude=["tests"]),
|
||||
install_requires=["distribute>=0.6.28"],
|
||||
install_requires=["setuptools"],
|
||||
)
|
||||
|
||||
@@ -54,7 +54,7 @@ setup(
|
||||
version="0.1",
|
||||
packages=find_packages(exclude=["tests"]),
|
||||
install_requires=[
|
||||
'distribute',
|
||||
'setuptools',
|
||||
'docopt',
|
||||
'capa',
|
||||
'path.py',
|
||||
|
||||
@@ -16,7 +16,6 @@ PYTHON_REQ_FILES = [
|
||||
'requirements/edx/github.txt',
|
||||
'requirements/edx/local.txt',
|
||||
'requirements/edx/base.txt',
|
||||
'requirements/edx/post.txt',
|
||||
]
|
||||
|
||||
# Developers can have private requirements, for local copies of github repos,
|
||||
|
||||
@@ -13,7 +13,6 @@ celery==3.1.18
|
||||
cssselect==0.9.1
|
||||
dealer==2.0.4
|
||||
defusedxml==0.4.1
|
||||
distribute>=0.6.28, <0.7
|
||||
django-babel-underscore==0.1.0
|
||||
django-celery==3.1.16
|
||||
django-countries==3.3
|
||||
@@ -52,6 +51,7 @@ Markdown==2.2.1
|
||||
--allow-unverified meliae
|
||||
meliae==0.4.0
|
||||
mongoengine==0.7.10
|
||||
MySQL-python==1.2.5
|
||||
networkx==1.7
|
||||
nltk==2.0.5
|
||||
nose==1.3.3
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# DON'T JUST ADD NEW DEPENDENCIES!!!
|
||||
#
|
||||
# If you open a pull request that adds a new dependency, you should notify:
|
||||
# * @mollydb to check licensing
|
||||
# * One of @e0d, @feanil, @fredsmith, @maxrothman, or @jibsheet
|
||||
# to check system requirements
|
||||
|
||||
# This must be installed after distribute has been updated.
|
||||
MySQL-python==1.2.4
|
||||
@@ -5,6 +5,9 @@
|
||||
# * One of @e0d, @feanil, @fredsmith, @maxrothman, or @jibsheet
|
||||
# to check system requirements
|
||||
|
||||
# Use a modern setuptools instead of distribute
|
||||
setuptools==18.0.1
|
||||
|
||||
# Numpy and scipy can't be installed in the same pip run.
|
||||
# Install numpy before other things to help resolve the problem.
|
||||
numpy==1.6.2
|
||||
|
||||
@@ -441,27 +441,6 @@ if [[ -n $compile ]]; then
|
||||
rm -rf numpy-${NUMPY_VER} scipy-${SCIPY_VER}
|
||||
fi
|
||||
|
||||
# building correct version of distribute from source
|
||||
DISTRIBUTE_VER="0.6.28"
|
||||
output "Building Distribute"
|
||||
SITE_PACKAGES="$WORKON_HOME/edx-platform/lib/python2.7/site-packages"
|
||||
cd "$SITE_PACKAGES"
|
||||
curl -sSLO http://pypi.python.org/packages/source/d/distribute/distribute-${DISTRIBUTE_VER}.tar.gz
|
||||
tar -xzvf distribute-${DISTRIBUTE_VER}.tar.gz
|
||||
cd distribute-${DISTRIBUTE_VER}
|
||||
python setup.py install
|
||||
cd ..
|
||||
rm distribute-${DISTRIBUTE_VER}.tar.gz
|
||||
|
||||
DISTRIBUTE_VERSION=`pip freeze | grep distribute`
|
||||
|
||||
if [[ "$DISTRIBUTE_VERSION" == "distribute==0.6.28" ]]; then
|
||||
output "Distribute successfully installed"
|
||||
else
|
||||
error "Distribute failed to build correctly. This script requires a working version of Distribute 0.6.28 in your virtualenv's python installation"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case `uname -s` in
|
||||
Darwin)
|
||||
# on mac os x get the latest distribute and pip
|
||||
|
||||
2
setup.py
2
setup.py
@@ -7,7 +7,7 @@ from setuptools import setup
|
||||
setup(
|
||||
name="Open edX",
|
||||
version="0.4",
|
||||
install_requires=["distribute"],
|
||||
install_requires=["setuptools"],
|
||||
requires=[],
|
||||
# NOTE: These are not the names we should be installing. This tree should
|
||||
# be reorganized to be a more conventional Python tree.
|
||||
|
||||
Reference in New Issue
Block a user