Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 73a154a

Browse filesBrowse files
earhartmattmoor
authored andcommitted
Use literal '/'s to build internal zip file paths (bazel-contrib#51)
* Use posixpath to build internal zip file paths * Use literal / instead of posixpath * Update piptool.par and whltool.par
1 parent f2e01f9 commit 73a154a
Copy full SHA for 73a154a

File tree

3 files changed

+2
-2
lines changed
Filter options

3 files changed

+2
-2
lines changed

‎rules_python/whl.py

Copy file name to clipboardExpand all lines: rules_python/whl.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ def metadata(self):
6060
with zipfile.ZipFile(self.path(), 'r') as whl:
6161
# first check for metadata.json
6262
try:
63-
with whl.open(os.path.join(self._dist_info(), 'metadata.json')) as f:
63+
with whl.open(self._dist_info() + '/metadata.json') as f:
6464
return json.loads(f.read().decode("utf-8"))
6565
except KeyError:
6666
pass
6767
# fall back to METADATA file (https://www.python.org/dev/peps/pep-0427/)
68-
with whl.open(os.path.join(self._dist_info(), 'METADATA')) as f:
68+
with whl.open(self._dist_info() + '/METADATA') as f:
6969
return self._parse_metadata(f.read().decode("utf-8"))
7070

7171
def name(self):

‎tools/piptool.par

Copy file name to clipboard
-65 Bytes
Binary file not shown.

‎tools/whltool.par

Copy file name to clipboard
-64 Bytes
Binary file not shown.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.