Skip to content

Commit

Permalink
Moved requirements into setup.py now that everything installs properl…
Browse files Browse the repository at this point in the history
…y from just easystreet
  • Loading branch information
kelvl committed Aug 23, 2012
1 parent df846f1 commit b7872b4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 76 deletions.
8 changes: 0 additions & 8 deletions requirements.txt

This file was deleted.

6 changes: 1 addition & 5 deletions scripts/install_python_packages.sh
Expand Up @@ -38,11 +38,7 @@ if [[ "$context" != testing ]]; then
sleep 2 # hackery to wait until the pypi-server's actually started sleep 2 # hackery to wait until the pypi-server's actually started
fi fi


#easy_install -i http://localhost:8302/simple/ gevent==1.0b3 pip install -i http://localhost:8302/simple/ .
pip install -i http://localhost:8302/simple/ -r $dir/requirements.txt

# pip install -i http://localhost:8302/simple/ -r $dir/requirements.txt
#pip install -r $dir/requirements.txt


if [[ "$context" == testing ]]; then if [[ "$context" == testing ]]; then
pip install -r $dir/tests/requirements.txt pip install -r $dir/tests/requirements.txt
Expand Down
75 changes: 12 additions & 63 deletions setup.py
Expand Up @@ -2,67 +2,7 @@
# #
# $Id: $ # $Id: $


from setuptools import setup, Command, find_packages from setuptools import setup, find_packages
# import os, shutil, stat, subprocess

# def get_base_path():
# """
# Use this if you need to install any non-python files found inside the
# project tree
# """
# return os.path.split(os.path.abspath(__file__))[0]

# def get_python_bin_dir():
# """
# Use this if you need to install any files into the python bin dir
# """
# return os.path.join(sys.prefix, 'bin')

# def shell(cmdline):
# return subprocess.Popen(cmdline, shell=True).wait()

# class TestCommand(Command):
# """
# Run tests with nose
# """
# description = "run tests with nose"
# def initialize_options(self): pass
# def finalize_options(self): pass
# user_options = []

# def run(self):
# shell("nosetests tests --with-coverage --cover-html")

# class ServerSetup(Command):
# """
# Install system level files (things that require escalated privs)
# """
# description = "install system level files (init.d)"
# def initialize_options(self): pass
# def finalize_options(self): pass
# user_options = []

# def run(self):
# if os.getuid() != 0:
# print "You must be root to install server files."
# raise SystemExit(1)
# if not os.path.exists('/usr/local/sbin/pytwilio-runner'):
# print ("/usr/local/sbin/pytwilio-runner not installed, "
# "it is required for this server. Install it by doing"
# "sudo python setup.py server for pietwilio")
# raise SystemExit(1)
# print "installing /etc/init.d/shadow"
# shutil.copyfile(os.path.join(get_base_path(), "init.d", "shadow"),
# "/etc/init.d/shadow")
# os.chmod("/etc/init.d/shadow", 0755)

# #copy the conf file to /etc/gservice, making gservice dir if it doesn't
# # exist
# print "installing /etc/gservice/shadow.conf.py"
# if not os.path.exists('/etc/gservice'):
# os.mkdir('/etc/gservice')
# shutil.copyfile(os.path.join(get_base_path(), "shadow.conf.py"),
# "/etc/gservice/shadow.conf.py")


setup(name='shadow', setup(name='shadow',
version='0.1', version='0.1',
Expand All @@ -72,6 +12,15 @@
packages = find_packages('src'), packages = find_packages('src'),
package_dir = {'': 'src'}, package_dir = {'': 'src'},
include_package_data = True, include_package_data = True,
# cmdclass={'test': TestCommand, install_requires = [
# 'server': ServerSetup} # 3rd party
'gevent==1.0b3',
'ginkgo==twilio-rc2',
'flask==0.9',
'requests==0.13.6',
'gevent-socketio==0.3.5-rc2',

# internal dependencies
'pytwilio.log==0.1',
]
) )

0 comments on commit b7872b4

Please sign in to comment.