Skip to content

Commit

Permalink
Allow pynvml and nvidia-ml-py to be coinstalled for 12.* versio…
Browse files Browse the repository at this point in the history
…ns (#24)

* MNT: Re-rendered with conda-build 24.11.2, conda-smithy 3.45.0, and conda-forge-pinning 2024.12.17.22.25.12

* Add @conda-forge/cuda as maintainers

* MNT: Re-rendered with conda-build 24.11.2, conda-smithy 3.45.0, and conda-forge-pinning 2024.12.17.22.25.12

Re-render with maintainer updates.

* Allow `pynvml` to match `nvidia-ml-py`

Beginning with `pynvml` version `12`, the package is a metapackage that
depends on `nvidia-ml-py` for core functionality. So allow `pynvml` to
be coinstalled with `nvidia-ml-py`.

* Put `python` before `pip` in `requirements/host`

* Require `setuptools` to provide `distutils`

* Replace `pypi.io` with `pypi.org`

* Move `test/requires` first in `test`

List requirements in `test` before listing tests to run.

* Apply CFEP 25

* MNT: Re-rendered with conda-build 24.11.2, conda-smithy 3.45.0, and conda-forge-pinning 2024.12.17.22.25.12

Re-render to pull in `python_min` (needed for CFEP 25).

* Bump `build/number` to `1`

Rebuild to include dependency fixes.
  • Loading branch information
jakirkham authored Dec 18, 2024
1 parent 469bdad commit 3417548
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
cdt_name:
- cos7
- conda
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
- quay.io/condaforge/linux-anvil-x86_64:alma9
python_min:
- '3.9'
2 changes: 1 addition & 1 deletion .github/CODEOWNERS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 27 additions & 2 deletions azure-pipelines.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion build-locally.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 11 additions & 7 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,42 @@
{% set name = "nvidia-ml-py" %}
{% set version = "12.560.30" %}
{% set major_version = version.split(".")[0]|int %}
{% set sha256 = "f0254dc7400647680a072ee02509bfd46102b60bdfeca321576d4d4817e7fe97" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv
number: 0
number: 1

requirements:
host:
- python {{ python_min }}
- pip
- python >=3.4
- setuptools
run:
- python >=3.4
- python >={{ python_min }}
run_constrained:
# Packages that conflict with nvidia-ml-py
# Both packages install pynvml.py
- nvidia-ml ==9999999999
- pynvml ==9999999999
- pynvml ~={{ major_version }}.0

test:
requires:
- python {{ python_min }}
- pip
imports:
- pynvml
commands:
- pip check
requires:
- pip

about:
home: http://www.nvidia.com
Expand All @@ -46,4 +49,5 @@ about:

extra:
recipe-maintainers:
- conda-forge/cuda
- XuehaiPan

0 comments on commit 3417548

Please sign in to comment.