Skip to content

Commit

Permalink
setup.py: use getattr to retrieve the dependencies in urls
Browse files Browse the repository at this point in the history
  • Loading branch information
vied12 committed May 25, 2015
1 parent 178e10a commit 1ff38c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

SOURCE_FOLDER = 'server'
LONG_DESCRIPTION = open(os.path.join(SOURCE_FOLDER, 'README.md')).read()
REQUIREMENTS = [str(ir.req) for ir in parse_requirements('server/requirements.txt', session=PipSession()) if not ir.url]
REQUIREMENTS = [str(ir.req) for ir in parse_requirements('server/requirements.txt', session=PipSession())
if not (getattr(ir, 'link', False) or getattr(ir, 'url', False))]

setup(
name='Superdesk-Server',
Expand Down

0 comments on commit 1ff38c7

Please sign in to comment.