mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Use the pipenv cache path in the patched pip-tools
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
- Pip is modified, to make it resolve deep extras links.
|
||||
- Pip-tools is modified, to make it resolve markers.
|
||||
- Pip-tools is modified, to make it do 12 rounds instead of 10, by default.
|
||||
- Pip-tools is modified, to use its own cache path with dependency resolution, and not conflict with the "real" pip-tools.
|
||||
- Crayons is upgraded.
|
||||
- Safety is hacked together to always work on any system.
|
||||
- TOML libraries are upgraded to... work.
|
||||
|
||||
@@ -2,10 +2,13 @@ import os
|
||||
from shutil import rmtree
|
||||
|
||||
from .click import secho
|
||||
from pip.utils.appdirs import user_cache_dir
|
||||
# Patch by vphilippon 2017-11-22: Use pipenv cache path.
|
||||
# from pip.utils.appdirs import user_cache_dir
|
||||
from pipenv.environments import PIPENV_CACHE_DIR
|
||||
|
||||
# The user_cache_dir helper comes straight from pip itself
|
||||
CACHE_DIR = user_cache_dir('pip-tools')
|
||||
# CACHE_DIR = user_cache_dir(os.path.join('pip-tools'))
|
||||
CACHE_DIR = PIPENV_CACHE_DIR
|
||||
|
||||
# NOTE
|
||||
# We used to store the cache dir under ~/.pip-tools, which is not the
|
||||
|
||||
Reference in New Issue
Block a user