Skip to content

Slow pip install due to django-sources #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
K0Te opened this issue Jan 31, 2019 · 2 comments
Closed

Slow pip install due to django-sources #13

K0Te opened this issue Jan 31, 2019 · 2 comments

Comments

@K0Te
Copy link
Contributor

K0Te commented Jan 31, 2019

Hi,

I've tried to run scripts/typecheck_tests.py to verify some changes.
AFAIK is needed to re-install django-stubs in order to re-run scripts/typecheck_tests.py with modifications. However, this scripts install django-sources in project root folder and this affect pip install -U speed:

$ time pip3.7 install -U .
Processing /Users/kote/github/django-stubs
Requirement already satisfied, skipping upgrade: Django in /usr/local/lib/python3.7/site-packages (from django-stubs==0.2.0) (2.1.5)
Requirement already satisfied, skipping upgrade: mypy in /usr/local/lib/python3.7/site-packages (from django-stubs==0.2.0) (0.660)
Requirement already satisfied, skipping upgrade: pytz in /usr/local/lib/python3.7/site-packages (from Django->django-stubs==0.2.0) (2018.9)
Requirement already satisfied, skipping upgrade: typed-ast<1.3.0,>=1.2.0 in /usr/local/lib/python3.7/site-packages (from mypy->django-stubs==0.2.0) (1.2.0)
Requirement already satisfied, skipping upgrade: mypy-extensions<0.5.0,>=0.4.0 in /usr/local/lib/python3.7/site-packages (from mypy->django-stubs==0.2.0) (0.4.1)
Building wheels for collected packages: django-stubs
  Running setup.py bdist_wheel for django-stubs ... done
  Stored in directory: /Users/kote/Library/Caches/pip/wheels/d7/e7/6b/7e469272d213a3673cde0b8793a8d739ad8407a3676a70dabf
Successfully built django-stubs
Installing collected packages: django-stubs
  Found existing installation: django-stubs 0.2.0
    Uninstalling django-stubs-0.2.0:
      Successfully uninstalled django-stubs-0.2.0
Successfully installed django-stubs-0.2.0

real	1m10.033s
user	0m13.555s

# without django-sources
$ time pip3.7 install -U .
Processing /Users/kote/github/django-stubs
Requirement already satisfied, skipping upgrade: Django in /usr/local/lib/python3.7/site-packages (from django-stubs==0.2.0) (2.1.5)
Requirement already satisfied, skipping upgrade: mypy in /usr/local/lib/python3.7/site-packages (from django-stubs==0.2.0) (0.660)
Requirement already satisfied, skipping upgrade: pytz in /usr/local/lib/python3.7/site-packages (from Django->django-stubs==0.2.0) (2018.9)
Requirement already satisfied, skipping upgrade: mypy-extensions<0.5.0,>=0.4.0 in /usr/local/lib/python3.7/site-packages (from mypy->django-stubs==0.2.0) (0.4.1)
Requirement already satisfied, skipping upgrade: typed-ast<1.3.0,>=1.2.0 in /usr/local/lib/python3.7/site-packages (from mypy->django-stubs==0.2.0) (1.2.0)
Building wheels for collected packages: django-stubs
  Running setup.py bdist_wheel for django-stubs ... done
  Stored in directory: /Users/kote/Library/Caches/pip/wheels/d7/e7/6b/7e469272d213a3673cde0b8793a8d739ad8407a3676a70dabf
Successfully built django-stubs
Installing collected packages: django-stubs
  Found existing installation: django-stubs 0.2.0
    Uninstalling django-stubs-0.2.0:
      Successfully uninstalled django-stubs-0.2.0
Successfully installed django-stubs-0.2.0

real	0m2.939s
user	0m1.677s
sys	0m1.193s

@mkurnikov
Copy link
Member

@K0Te Could you test how slow it is now, after removing old django-sources and rerunning typecheck_tests.py? Should be faster.

@K0Te
Copy link
Contributor Author

K0Te commented Feb 10, 2019

Works much better now, thanks !

@K0Te K0Te closed this as completed Feb 10, 2019
@TonyRippy TonyRippy mentioned this issue Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants