Created
December 28, 2012 03:05
-
-
Save lowks/4394147 to your computer and use it in GitHub Desktop.
Distcmd dep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cot.lib.distcmd import * | |
from urlparse import urlparse | |
class dep(MyCommand): | |
user_options = [ | |
('index-url=', 'i', 'Url to the Python Package Index'), | |
('follow-links', None, 'Search for indirect dependencies in the ' | |
'additional links specified in dependencies'), | |
] | |
defaults = { | |
'index_url': 'http://hydra.lcalink.com/inupypi/cot_dependencies/', | |
'follow_links': False, | |
} | |
def run(self): | |
# 4Suite-XML is problematic, install it separately | |
self.sh('easy_install -i %s 4Suite-XML' % self.index_url) | |
if self.follow_links: | |
mask = '"*"' | |
else: | |
mask = urlparse(self.index_url)[1] | |
self.sh('python setup.py develop -i %s -H %s' % (self.index_url, | |
mask)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment