Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Merge requests
!175
Make pytorch packages to depend on the cpuonly package
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Make pytorch packages to depend on the cpuonly package
pytorch
into
master
Overview
14
Commits
1
Pipelines
1
Changes
1
Merged
Amir MOHAMMADI
requested to merge
pytorch
into
master
4 years ago
Overview
14
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
0b082e90
1 commit,
4 years ago
1 file
+
5
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
deps/repodata-patches/gen_patch_json.py
+
5
−
0
Options
@@ -110,6 +110,11 @@ def _gen_new_index(repodata, packages_key):
@@ -110,6 +110,11 @@ def _gen_new_index(repodata, packages_key):
if
parse_version
(
record
[
"
version
"
])
<=
parse_version
(
"
4.1.0
"
):
if
parse_version
(
record
[
"
version
"
])
<=
parse_version
(
"
4.1.0
"
):
record
[
"
depends
"
].
append
(
"
numpy <1.18
"
)
record
[
"
depends
"
].
append
(
"
numpy <1.18
"
)
# somehow conda cannot resolve pytorch cpu without the cpuonly package
# we only ship cpu-only pytorch packages
if
record_name
==
"
pytorch
"
:
record
[
"
depends
"
].
append
(
"
cpuonly
"
)
return
index
return
index
Loading