Commit 95ebf7f6 by Régis Behmo Committed by David Baumgold

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.
parent 1574650f
...@@ -4,5 +4,5 @@ setup( ...@@ -4,5 +4,5 @@ setup(
name="capa", name="capa",
version="0.1", version="0.1",
packages=find_packages(exclude=["tests"]), packages=find_packages(exclude=["tests"]),
install_requires=["distribute>=0.6.28"], install_requires=["setuptools"],
) )
...@@ -54,7 +54,7 @@ setup( ...@@ -54,7 +54,7 @@ setup(
version="0.1", version="0.1",
packages=find_packages(exclude=["tests"]), packages=find_packages(exclude=["tests"]),
install_requires=[ install_requires=[
'distribute', 'setuptools',
'docopt', 'docopt',
'capa', 'capa',
'path.py', 'path.py',
......
...@@ -16,7 +16,6 @@ PYTHON_REQ_FILES = [ ...@@ -16,7 +16,6 @@ PYTHON_REQ_FILES = [
'requirements/edx/github.txt', 'requirements/edx/github.txt',
'requirements/edx/local.txt', 'requirements/edx/local.txt',
'requirements/edx/base.txt', 'requirements/edx/base.txt',
'requirements/edx/post.txt',
] ]
# Developers can have private requirements, for local copies of github repos, # Developers can have private requirements, for local copies of github repos,
......
...@@ -13,7 +13,6 @@ celery==3.1.18 ...@@ -13,7 +13,6 @@ celery==3.1.18
cssselect==0.9.1 cssselect==0.9.1
dealer==2.0.4 dealer==2.0.4
defusedxml==0.4.1 defusedxml==0.4.1
distribute>=0.6.28, <0.7
django-babel-underscore==0.1.0 django-babel-underscore==0.1.0
django-celery==3.1.16 django-celery==3.1.16
django-countries==3.3 django-countries==3.3
...@@ -52,6 +51,7 @@ Markdown==2.2.1 ...@@ -52,6 +51,7 @@ Markdown==2.2.1
--allow-unverified meliae --allow-unverified meliae
meliae==0.4.0 meliae==0.4.0
mongoengine==0.7.10 mongoengine==0.7.10
MySQL-python==1.2.5
networkx==1.7 networkx==1.7
nltk==2.0.5 nltk==2.0.5
nose==1.3.3 nose==1.3.3
......
# 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 @@ ...@@ -5,6 +5,9 @@
# * One of @e0d, @feanil, @fredsmith, @maxrothman, or @jibsheet # * One of @e0d, @feanil, @fredsmith, @maxrothman, or @jibsheet
# to check system requirements # 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. # Numpy and scipy can't be installed in the same pip run.
# Install numpy before other things to help resolve the problem. # Install numpy before other things to help resolve the problem.
numpy==1.6.2 numpy==1.6.2
......
...@@ -441,27 +441,6 @@ if [[ -n $compile ]]; then ...@@ -441,27 +441,6 @@ if [[ -n $compile ]]; then
rm -rf numpy-${NUMPY_VER} scipy-${SCIPY_VER} rm -rf numpy-${NUMPY_VER} scipy-${SCIPY_VER}
fi 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 case `uname -s` in
Darwin) Darwin)
# on mac os x get the latest distribute and pip # on mac os x get the latest distribute and pip
......
...@@ -7,7 +7,7 @@ from setuptools import setup ...@@ -7,7 +7,7 @@ from setuptools import setup
setup( setup(
name="Open edX", name="Open edX",
version="0.4", version="0.4",
install_requires=["distribute"], install_requires=["setuptools"],
requires=[], requires=[],
# NOTE: These are not the names we should be installing. This tree should # NOTE: These are not the names we should be installing. This tree should
# be reorganized to be a more conventional Python tree. # be reorganized to be a more conventional Python tree.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment