From b09fc4165cee8ac76d9cd145809d957b7be58858 Mon Sep 17 00:00:00 2001 From: Ted Kaplan Date: Mon, 23 Jan 2017 18:38:23 -0800 Subject: [PATCH 1/2] Use uncompiled version of pep508checker This ensures that it will work when running across different Python versions. --- pipenv/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 807b2c6a..2cbbad69 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -546,7 +546,7 @@ def check(): click.echo(crayons.yellow('Checking PEP 508 requirements...')) # Run the PEP 508 checker in the virtualenv. - c = delegator.run('{0} {1}'.format(which('python'), pep508checker.__file__)) + c = delegator.run('{0} {1}'.format(which('python'), pep508checker.__file__.rstrip('cd'))) results = json.loads(c.out) # Load the pipfile. From 7c4c7d23055e421002987164e6368afc63b9d6be Mon Sep 17 00:00:00 2001 From: Ted Kaplan Date: Mon, 23 Jan 2017 18:46:10 -0800 Subject: [PATCH 2/2] Also handle optimized bytecode files --- pipenv/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 2cbbad69..43aa179f 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -546,7 +546,7 @@ def check(): click.echo(crayons.yellow('Checking PEP 508 requirements...')) # Run the PEP 508 checker in the virtualenv. - c = delegator.run('{0} {1}'.format(which('python'), pep508checker.__file__.rstrip('cd'))) + c = delegator.run('{0} {1}'.format(which('python'), pep508checker.__file__.rstrip('cdo'))) results = json.loads(c.out) # Load the pipfile.