From 3729c635f8314eb4b4db5f0db97d02c2bad34a3f Mon Sep 17 00:00:00 2001 From: Hamad alghanim Date: Tue, 17 Oct 2017 01:36:48 -0700 Subject: [PATCH] temp filename is now random --- pipenv/cli.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 7aa759ed..1963a678 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -1743,10 +1743,13 @@ def install( if not pre: pre = project.settings.get('allow_prereleases') - temporary_requirements = "requirements-temp.txt" - remote = False + # Using current time to generate a random filename to avoid + now = time.localtime() + temporary_requirements = "requirments{0}{1}{2}{3}{4}{5}.txt".format( + now.tm_year, now.tm_mon, now.tm_mday, now.tm_hour, now.tm_min, now.tm_sec) + remote = requirements and is_valid_url(requirements) # Check if the file is remote or not - if requirements and is_valid_url(requirements): + if remote: # Download requirements file click.echo( crayons.normal(