Skip to content

Instantly share code, notes, and snippets.

@altendky
Created May 4, 2018 13:19
Show Gist options
  • Save altendky/b11223613cd77c9b25adceaef744dabf to your computer and use it in GitHub Desktop.
Save altendky/b11223613cd77c9b25adceaef744dabf to your computer and use it in GitHub Desktop.
altendky@lt:/home/epc/g/20/test$ rm -rf .venv; mkdir .venv; rm Pipfile*; rm -rf {,src}*.egg-info; tree -a -I .idea; cat setup.py; ../pipenv/.venv/bin/pipenv install --verbose -e .; echo -e "\n Exit code: $?\n"; ../pipenv/.venv/bin/pipenv run pip freeze
.
├── setup.py
└── .venv
1 directory, 1 file
import setuptools
setuptools.setup(
name='testing',
install_requires=[
'chardet',
# 'twisted; platform_system != "Windows"',
# 'twisted[windows_platform]; platform_system == "Windows"',
],
)
Creating a virtualenv for this project…
Using /home/epc/g/20/pipenv/.venv/bin/python3.6 (3.6.5) to create virtualenv…
⠋Running virtualenv with interpreter /home/epc/g/20/pipenv/.venv/bin/python3.6
Using real prefix '/home/altendky/.pyenv/versions/3.6.5'
New python executable in /home/epc/g/20/test/.venv/bin/python3.6
Also creating executable in /home/epc/g/20/test/.venv/bin/python
Installing setuptools, pip, wheel...done.
Virtualenv location: /home/epc/g/20/test/.venv
Creating a Pipfile for this project…
Installing -e .…
⠙Installing '-e .'
$ "/home/epc/g/20/test/.venv/bin/pip" install --verbose -e "." -i https://pypi.org/simple --exists-action w
Created temporary directory: /tmp/pip-ephem-wheel-cache-9xm4x4cx
Created temporary directory: /tmp/pip-install-vsan0o_l
Obtaining file:///home/epc/g/20/test
Running setup.py (path:/home/epc/g/20/test/setup.py) egg_info for package from file:///home/epc/g/20/test
Running command python setup.py egg_info
running egg_info
creating testing.egg-info
writing testing.egg-info/PKG-INFO
writing dependency_links to testing.egg-info/dependency_links.txt
writing requirements to testing.egg-info/requires.txt
writing top-level names to testing.egg-info/top_level.txt
writing manifest file 'testing.egg-info/SOURCES.txt'
reading manifest file 'testing.egg-info/SOURCES.txt'
writing manifest file 'testing.egg-info/SOURCES.txt'
Source in /home/epc/g/20/test has version 0.0.0, which satisfies requirement testing==0.0.0 from file:///home/epc/g/20/test
Collecting chardet (from testing==0.0.0)
1 location(s) to search for versions of chardet:
* https://pypi.org/simple/chardet/
Getting page https://pypi.org/simple/chardet/
Looking up "https://pypi.org/simple/chardet/" in the cache
Current age based on date: 17
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 17
Analyzing links from page https://pypi.org/simple/chardet/
Found link https://files.pythonhosted.org/packages/13/29/9336841b1a5d9de9de808e1797ab04057bc17982bbab87dd14fc06aa4160/chardet-1.0.tar.gz#sha256=f3a80cfd53a9a9e8311e996062bb7ed0c0551367545548460d5a2c3b4717c797 (from https://pypi.org/simple/chardet/), version: 1.0
Skipping link https://files.pythonhosted.org/packages/ec/32/19eab081980cc61aa8d49c44930cf897c1dbce6888579743aed12140810a/chardet-1.0.1-py2.4.egg#sha256=58ba4a382c9c7e1f6619ed4f3a273fb4044de4352342f473539d20ca4346113a (from https://pypi.org/simple/chardet/); unsupported archive format: .egg
Skipping link https://files.pythonhosted.org/packages/d4/bc/c1b877d19bc02610873a21cc3978260008c2839acac36772dd29c1f78316/chardet-1.0.1-py2.5.egg#sha256=5c303c3549070d5cd5101649d569ea00ccf5f763245f64f61015834c4acdbe61 (from https://pypi.org/simple/chardet/); unsupported archive format: .egg
Found link https://files.pythonhosted.org/packages/94/f1/f3237e3045c422c83968d3a2dfdefc7d4d687d84957e12810564b16ac5d5/chardet-1.0.1.tar.gz#sha256=4573d91ec9e6d88c6be1dfe004ea337d47754ed3924b4c181f777c613465578b (from https://pypi.org/simple/chardet/), version: 1.0.1
Found link https://files.pythonhosted.org/packages/11/da/101ef38e05881445c1dec36dbd0573f9561e357a2da9e2409656e4677ffa/chardet-1.1.tar.gz#sha256=2a9cc3bcba09a9e795efcf63ff1714980beb8dea1660f0931f675f52f4264e5c (from https://pypi.org/simple/chardet/), version: 1.1
Found link https://files.pythonhosted.org/packages/f2/f1/2b5ab854299fe1ea312a9c10dda58421ea24af98a128ad1bff6b87c0c927/chardet-2.1.1.tar.gz#sha256=b0d4149078ec777b448f43960c1d0d9648e03b366c60e396c50990c55eab6ed0 (from https://pypi.org/simple/chardet/), version: 2.1.1
Found link https://files.pythonhosted.org/packages/63/b7/de3834dc5c84dec3b839690bd663a07613b166b0b7217e46687a1f7eced2/chardet-2.2.1-py2.py3-none-any.whl#sha256=c72cce700513dbf2269f9695fa79402ef4b0860d2925a5cc4666b21647debb6a (from https://pypi.org/simple/chardet/), version: 2.2.1
Found link https://files.pythonhosted.org/packages/86/e5/e5f97d77cda0622e875d83edfdbb2f81ba38165e7197f9d185ba2c799f77/chardet-2.2.1.tar.gz#sha256=f1964f73f5ee9b7e0309098b9512d587fbba6dd5d1f3797b1c95529e5241bf09 (from https://pypi.org/simple/chardet/), version: 2.2.1
Found link https://files.pythonhosted.org/packages/7e/5c/605ca2daa5cf21c87690d8fe6ab05a6f2278c451f4ede6456dd26453f4bd/chardet-2.3.0-py2.py3-none-any.whl#sha256=aaf514bde38020b4f1e42c6a6e141f2827a8a58ccfc3b22b6ff5a1a4b50be56e (from https://pypi.org/simple/chardet/), version: 2.3.0
Found link https://files.pythonhosted.org/packages/7d/87/4e3a3f38b2f5c578ce44f8dc2aa053217de9f0b6d737739b0ddac38ed237/chardet-2.3.0.tar.gz#sha256=e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa (from https://pypi.org/simple/chardet/), version: 2.3.0
Found link https://files.pythonhosted.org/packages/63/8b/44ea61e33bd7d38c1416b625c87a98aeb4ee9abdad3bff630c69b6b5ffc8/chardet-3.0.0-py2.py3-none-any.whl#sha256=bedd581d3daea4180b3cb555940dcbc89916e7922b070d2a9a37e660791e90a2 (from https://pypi.org/simple/chardet/), version: 3.0.0
Found link https://files.pythonhosted.org/packages/33/d9/43cd46d6b8cf2e393aeb60f338cfe0154cee7dd3de13a1752d3e4814aee2/chardet-3.0.0.tar.gz#sha256=171dfc754d56c16b82cf77ac3eee1d42db9bc2f26c2c61c6573426d2a108d9e3 (from https://pypi.org/simple/chardet/), version: 3.0.0
Found link https://files.pythonhosted.org/packages/de/e5/3226e65c6f4291bc3f7ec0a9329ed9949bf074d8663a037c58c78d275745/chardet-3.0.1-py2.py3-none-any.whl#sha256=f986f11a01ab75cbf3b364deb41f2bb0943053adc1c5c257245e8f484d59cbba (from https://pypi.org/simple/chardet/), version: 3.0.1
Found link https://files.pythonhosted.org/packages/42/d1/c7e0023643df3c53ff72513f53f28bc1e948cb18a56f8a20aee289537ee9/chardet-3.0.1.tar.gz#sha256=0d9688b015b3493f2f486214a2181b8f29fbe21c4034711bd9140a1d3467808d (from https://pypi.org/simple/chardet/), version: 3.0.1
Found link https://files.pythonhosted.org/packages/b8/74/54fdc2fcfdd46b6c486964b64c5bb7db9a3664033ab25cf11aab06dd2a5d/chardet-3.0.2-py2.py3-none-any.whl#sha256=6ebf56457934fdce01fb5ada5582762a84eed94cad43ed877964aebbdd8174c0 (from https://pypi.org/simple/chardet/), version: 3.0.2
Found link https://files.pythonhosted.org/packages/91/05/28f23094cdf1410fb03533f0d71e6b4aad3c504100e83b8cea6fc899552c/chardet-3.0.2.tar.gz#sha256=4f7832e7c583348a9eddd927ee8514b3bf717c061f57b21dbe7697211454d9bb (from https://pypi.org/simple/chardet/), version: 3.0.2
Found link https://files.pythonhosted.org/packages/8c/27/99f781a11e4daa5acadf97add6e5883ec5f8f9abbf279e790fd0ff371db7/chardet-3.0.3-py2.py3-none-any.whl#sha256=8da3f329e2c5779247f4cff7081512c531731ef6a9c6ef78084e8ed8d18226c7 (from https://pypi.org/simple/chardet/), version: 3.0.3
Found link https://files.pythonhosted.org/packages/fc/f9/3963ae8e196ceb4a09e0d7906f511fdf62a631f05d9288dc4905a93a1f52/chardet-3.0.3.tar.gz#sha256=77df6d712a6037ed6f247ad1dd67faca506f64bc1295d43533e9212a101f28cb (from https://pypi.org/simple/chardet/), version: 3.0.3
Found link https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl#sha256=fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 (from https://pypi.org/simple/chardet/), version: 3.0.4
Found link https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz#sha256=84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae (from https://pypi.org/simple/chardet/), version: 3.0.4
Using version 3.0.4 (newest of versions: 1.0, 1.0.1, 1.1, 2.1.1, 2.2.1, 2.3.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4)
Created temporary directory: /tmp/pip-unpack-gc0za9uv
Looking up "https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl" in the cache
Ignoring unknown cache-control directive:
Current age based on date: 1186201
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 1186201
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Downloading from URL https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl#sha256=fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 (from https://pypi.org/simple/chardet/)
Installing collected packages: chardet, testing
changing mode of /home/epc/g/20/test/.venv/bin/chardetect to 755
Running setup.py develop for testing
Running command /home/epc/g/20/test/.venv/bin/python3.6 -c "import setuptools, tokenize;__file__='/home/epc/g/20/test/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
running develop
running egg_info
writing testing.egg-info/PKG-INFO
writing dependency_links to testing.egg-info/dependency_links.txt
writing requirements to testing.egg-info/requires.txt
writing top-level names to testing.egg-info/top_level.txt
reading manifest file 'testing.egg-info/SOURCES.txt'
writing manifest file 'testing.egg-info/SOURCES.txt'
running build_ext
Creating /home/epc/g/20/test/.venv/lib/python3.6/site-packages/testing.egg-link (link to .)
Adding testing 0.0.0 to easy-install.pth file
Installed /home/epc/g/20/test
Successfully installed chardet-3.0.4 testing
Cleaning up...
Adding -e . to Pipfile's [packages]…
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Using pip: -i https://pypi.org/simple
ROUND 1
Current constraints:
Finding the best candidates:
Finding secondary dependencies:
------------------------------------------------------------
Result of round 1: stable, done
Locking [packages] dependencies…
Using pip: -i https://pypi.org/simple
ROUND 1
Current constraints:
file:///home/epc/g/20/test
Finding the best candidates:
found candidate -e file:///home/epc/g/20/test (constraint was <any>)
Finding secondary dependencies:
New dependencies found in this round:
adding ['chardet', '', '[]']
Removed dependencies in this round:
Unsafe dependencies in this round:
------------------------------------------------------------
Result of round 1: not stable
ROUND 2
Current constraints:
chardet
testing==0.0.0 from file:///home/epc/g/20/test
Finding the best candidates:
found candidate chardet==3.0.4 (constraint was <any>)
found candidate -e file:///home/epc/g/20/test (constraint was ==0.0.0)
Finding secondary dependencies:
chardet==3.0.4 requires -
------------------------------------------------------------
Result of round 2: stable, done
Updated Pipfile.lock (8d2b3d)!
Installing dependencies from Pipfile.lock (8d2b3d)…
Installing 'chardet==3.0.4 --hash=sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae --hash=sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691 '
$ "/home/epc/g/20/test/.venv/bin/pip" install --verbose --no-deps -r "/tmp/pipenv-c8u9nsf9-requirements/pipenv-qczxcd9b-requirement.txt" --require-hashes -i https://pypi.org/simple --exists-action w
Installing '-e .'▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 1/2 — 00:00:00
$ "/home/epc/g/20/test/.venv/bin/pip" install --verbose --no-deps -e "." -i https://pypi.org/simple --exists-action w
Created temporary directory: /tmp/pip-ephem-wheel-cache-qt5y9l_o
Created temporary directory: /tmp/pip-install-u_70jtyx
Requirement already satisfied: chardet==3.0.4 in ./.venv/lib/python3.6/site-packages (from -r /tmp/pipenv-c8u9nsf9-requirements/pipenv-qczxcd9b-requirement.txt (line 1)) (3.0.4)
Since it is already installed, we are trusting this package without checking its hash. To ensure a completely repeatable environment, install into an empty virtualenv.
Cleaning up...
Created temporary directory: /tmp/pip-ephem-wheel-cache-m9rkcxuk
Created temporary directory: /tmp/pip-install-4c6f3m2k
Obtaining file:///home/epc/g/20/test
Running setup.py (path:/home/epc/g/20/test/setup.py) egg_info for package from file:///home/epc/g/20/test
Running command python setup.py egg_info
running egg_info
writing testing.egg-info/PKG-INFO
writing dependency_links to testing.egg-info/dependency_links.txt
writing requirements to testing.egg-info/requires.txt
writing top-level names to testing.egg-info/top_level.txt
reading manifest file 'testing.egg-info/SOURCES.txt'
writing manifest file 'testing.egg-info/SOURCES.txt'
Source in /home/epc/g/20/test has version 0.0.0, which satisfies requirement testing==0.0.0 from file:///home/epc/g/20/test
Installing collected packages: testing
Found existing installation: testing 0.0.0
Uninstalling testing-0.0.0:
Created temporary directory: /tmp/pip-uninstall-82uqv9ac
Removing file or directory /home/epc/g/20/test/.venv/lib/python3.6/site-packages/testing.egg-link
Removing pth entries from /home/epc/g/20/test/.venv/lib/python3.6/site-packages/easy-install.pth:
Removing entry: /home/epc/g/20/test
Successfully uninstalled testing-0.0.0
Running setup.py develop for testing
Running command /home/epc/g/20/test/.venv/bin/python3.6 -c "import setuptools, tokenize;__file__='/home/epc/g/20/test/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps
running develop
running egg_info
writing testing.egg-info/PKG-INFO
writing dependency_links to testing.egg-info/dependency_links.txt
writing requirements to testing.egg-info/requires.txt
writing top-level names to testing.egg-info/top_level.txt
reading manifest file 'testing.egg-info/SOURCES.txt'
writing manifest file 'testing.egg-info/SOURCES.txt'
running build_ext
Creating /home/epc/g/20/test/.venv/lib/python3.6/site-packages/testing.egg-link (link to .)
Adding testing 0.0.0 to easy-install.pth file
Installed /home/epc/g/20/test
Successfully installed testing
Cleaning up...
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 2/2 — 00:00:01
To activate this project's virtualenv, run the following:
$ pipenv shell
Exit code: 0
chardet==3.0.4
testing==0.0.0
altendky@lt:/home/epc/g/20/test$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment