@@ -68,7 +68,7 @@ def solve(self, id_, packages, python, platform):
68
68
69
69
with tempfile .TemporaryDirectory () as tmp_dir :
70
70
report = "{tmp_dir}/report.json" .format (tmp_dir = tmp_dir )
71
- implementations , platforms , abis = zip (
71
+ interpreter , platforms , abis = zip (
72
72
* [
73
73
(tag .interpreter , tag .platform , tag .abi )
74
74
for tag in pip_tags (python , platform )
@@ -92,7 +92,8 @@ def solve(self, id_, packages, python, platform):
92
92
),
93
93
* (chain .from_iterable (product (["--abi" ], set (abis )))),
94
94
* (chain .from_iterable (product (["--platform" ], set (platforms )))),
95
- # *(chain.from_iterable(product(["--implementations"], set(implementations)))),
95
+ * (chain .from_iterable (product (["--implementation" ], set (["cp" ])))),
96
+ "--python-version=%s" % python ,
96
97
]
97
98
for package , version in packages .items ():
98
99
if version .startswith (("<" , ">" , "!" , "~" , "@" )):
@@ -106,9 +107,9 @@ def solve(self, id_, packages, python, platform):
106
107
except PipPackageNotFound as ex :
107
108
# pretty print package errors
108
109
raise PipException (
109
- "Unable to find a binary distribution compatible with %s for %s.\n \n "
110
+ "Unable to find a binary distribution compatible with %s for %s.\n \n %s "
110
111
"Note: ***@pypi*** does not currently support source distributions"
111
- % (ex .package_spec , platform )
112
+ % (ex .package_spec , platform , ex . error )
112
113
)
113
114
114
115
def _format (dl_info ):
@@ -205,7 +206,7 @@ def _build(key, package):
205
206
shutil .move (os .path .join (path , wheel ), target )
206
207
metadata ["{url}" .format (** package )] = target
207
208
208
- implementations , platforms , abis = zip (
209
+ interpreter , platforms , abis = zip (
209
210
* [
210
211
(tag .interpreter , tag .platform , tag .abi )
211
212
for tag in pip_tags (python , platform )
@@ -228,7 +229,8 @@ def _build(key, package):
228
229
),
229
230
* (chain .from_iterable (product (["--abi" ], set (abis )))),
230
231
* (chain .from_iterable (product (["--platform" ], set (platforms )))),
231
- # *(chain.from_iterable(product(["--implementations"], set(implementations)))),
232
+ * (chain .from_iterable (product (["--implementation" ], set (["cp" ])))),
233
+ "--python-version=%s" % python ,
232
234
]
233
235
packages = [package for package in packages if not package ["require_build" ]]
234
236
for package in packages :
0 commit comments