Skip to content

Commit

Permalink
Merge pull request #1078 from spkenv/spk-convert-pip-timeout
Browse files Browse the repository at this point in the history
spk-convert-pip updates for handling open3d
  • Loading branch information
jrray authored Jul 18, 2024
2 parents 0aafb1f + 1ef30d7 commit 5bc6371
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/spk-convert-pip/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pkginfo==1.7.0
# 1.10.0 is the last version that supports python 3.7
pkginfo==1.10.0
packaging==20.9
# 0.40.0 latest at time of writing but no implied requirement for exactly this
# version.
wheel==0.40.0
wheel==0.40.0
3 changes: 3 additions & 0 deletions packages/spk-convert-pip/spk-convert-pip
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ class PipImporter:
pip_command = [
"pip",
"download",
# Allow enough time for larger wheels to download.
"--timeout=1000",
f"{req}",
"--python-version",
self._python_version,
Expand Down Expand Up @@ -284,6 +286,7 @@ class PipImporter:
def _process_package(
self, requester: Requirement, info: pkginfo.Distribution
) -> List[Dict[str, Any]]:
assert info.name, "A package name is required"
assert not info.requires, "No support for installation requirements"
assert not info.requires_external, "No support for external requirements"
assert not info.supported_platforms, "No support for supported platforms field"
Expand Down
2 changes: 1 addition & 1 deletion packages/spk-convert-pip/spk-convert-pip.spk.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pkg: spk-convert-pip/1.4.0
pkg: spk-convert-pip/1.4.2
api: v0/package
build:
script:
Expand Down

0 comments on commit 5bc6371

Please # to comment.