Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

Commit

Permalink
Pip 6 compatibility fix
Browse files Browse the repository at this point in the history
Add missing keyword required argument "session".
  • Loading branch information
Rafael Durán Castañeda committed Jan 13, 2015
1 parent 471ff6f commit 4cb78f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
@@ -1,5 +1,6 @@
import os

from pip import download
from pip import req
import setuptools

Expand All @@ -8,8 +9,10 @@

def get_requirements(reqfile):
path = os.path.join(HERE, reqfile)
return set([dep.name
for dep in req.parse_requirements(path)])
session = download.PipSession()
return set(
[dep.name for dep in req.parse_requirements(path, session=session)]
)


setuptools.setup(
Expand Down

0 comments on commit 4cb78f5

Please sign in to comment.