Skip to content

Commit

Permalink
Add symlink for pytorch and runtime dependencies sympy and mpmath for…
Browse files Browse the repository at this point in the history
… py3.11-pytorch

Signed-off-by: Srishti Hegde <[email protected]>
  • Loading branch information
srishtih committed Jan 19, 2024
1 parent d75397d commit ccd90b3
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
35 changes: 35 additions & 0 deletions py3-mpmath.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package:
name: py3-mpmath
version: 1.3.0
epoch: 0
description: Python library for arbitrary-precision floating-point arithmetic
copyright:
- license: BSD
dependencies:
runtime:
- python-3

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- wolfi-base

pipeline:
- uses: git-checkout
with:
expected-commit: b5c04506ef0cd4a1f1213f8389ee21c9c3551582
repository: https://github.com/mpmath/mpmath
tag: ${{package.version}}

- name: Python Build
uses: python/build-wheel

- uses: strip

update:
enabled: true
github:
identifier: fredrik-johansson/mpmath
37 changes: 37 additions & 0 deletions py3-sympy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package:
name: py3-sympy
version: "1.12"
epoch: 0
description: Computer algebra system (CAS) in Python
copyright:
- license: BSD
dependencies:
runtime:
- py3-mpmath
- python-3

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- wolfi-base

pipeline:
- uses: git-checkout
with:
expected-commit: 8059df7394f648bf4be5a51752e6d343003c92e6
repository: https://github.com/sympy/sympy
tag: sympy-${{package.version}}

- name: Python Build
uses: python/build-wheel

- uses: strip

update:
enabled: true
github:
identifier: sympy/sympy
strip-prefix: sympy-
13 changes: 13 additions & 0 deletions pytorch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,24 @@ pipeline:
# allow site-packages
sed -i "s|include-system-site-packages = false|include-system-site-packages = true|g" ${{targets.destdir}}/usr/share/pytorch/.venv/pyvenv.cfg
# Symlink to PATH
mkdir -p /usr/local/bin/
ln -s ${{targets.destdir}}/usr/share/pytorch/.venv/bin/torchrun /usr/local/bin/torchrun
- uses: strip

subpackages:
# This is a version of pytorch installed by itself into site-packages
- name: py3.11-pytorch
dependencies:
runtime:
- libgomp
- py3-typing-extensions
- py3-fsspec
- py3-networkx
- py3-jinja2
- py3-filelock
- py3-sympy
pipeline:
- runs: |
python -m installer -d ${{targets.subpkgdir}}/ dist/*.whl
Expand Down

0 comments on commit ccd90b3

Please sign in to comment.