install local wheel file will generate two records in lock file
See original GitHub issueI wanna to install pyscard from wheel on my local disk.
so i write an item into my Pipfile.
cp36-win32-p_y_scard = {path = "wheelhouse/pyscard-1.9.7-cp36-cp36m-win_amd64.whl",sys_platform = "== 'win32'"}
then i type “pipenv install” installing pyscard package.
this package install success.
but it seems two records is generated in lock file.
the first is:
"cp36-win32-p-y-scard": { "path": "wheelhouse/pyscard-1.9.7-cp36-cp36m-win_amd64.whl", "sys_platform": "== 'win32'" },
the second is:
"pyscard": { "hashes": [ "sha256:412c74c83e7401566e9d3d7b8b5ca965e74582a1f33179b3c1fabf1da73ebf80", "sha256:c804cd6891172e172ac404cd40bc9187c1f610a8011ddd9ec3a3a00f6c9ad6ea" ], "markers": "sys_platform == 'win32'", "version": "==1.9.7" },
From the two hash values listed in “pyscard”.
I can find the SHA256 hash of file from pypi is “412c74c8…”, the SHA256 hash of file from my local disk is " c804cd68…".
So should i get the first record in my Pipfile.lock? or is this a bug?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
@hartror
If Pipfile also contains the canonical
pyscard
package, then thepyscard
should also be in Pipfile.lock, with PyPI hashes only.So the OP’s lockfile should be this?
"cp36-win32-p-y-scard": { "hashes": [ "sha256:c804cd6891172e172ac404cd40bc9187c1f610a8011ddd9ec3a3a00f6c9ad6ea" ], "markers": "sys_platform == 'win32'" },