Skip to content

Commit

Permalink
#2138 Using requirements-external to specify git deps
Browse files Browse the repository at this point in the history
- Had to do it for python 3.12 and 3.8 compat

Signed-off-by: David Davó <[email protected]>
  • Loading branch information
daviddavo committed Aug 2, 2024
1 parent 7705b5d commit 4d4779a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 5 additions & 3 deletions recommenders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ We are currently evaluating inclusion of the following dependencies:

## Other dependencies

Some dependencies are not available via the recommenders PyPI package, but can be installed in the following ways:
- pymanopt: this dependency is required for the RLRMC and GeoIMC algorithms; a version of this code compatible with TensorFlow 2 can be
installed with `pip install "git+https://github.com/pymanopt/pymanopt.git@1de3b6f47258820fdc072fceaeaa763b9fd263b0"`.
Some dependencies are not available via the recommenders PyPI package, but can be installed with the [requirements-external.txt](./requirements-external.txt) file:

```
pip install -r requirements-external.txt
```

## NNI dependencies

Expand Down
5 changes: 5 additions & 0 deletions requirements-external.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Jun 2024: Fixes py312
pymanopt @git+https://github.com/pymanopt/pymanopt@1de3b6f47258820fdc072fceaeaa763b9fd263b0 ; python_version>='3.12'

# 2024/02/29: pymanopt bumped to python 3.8
pymanopt @git+https://github.com/pymanopt/pymanopt@e13cecaec3089c790cc93174840b2f557d179b3f ; python_version<'3.12'
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
]

# The following dependency can be installed as below, however PyPI does not allow direct URLs.
# Temporary fix for pymanopt, only this commit works with TF2
# "git+https://github.com/pymanopt/pymanopt.git@1de3b6f47258820fdc072fceaeaa763b9fd263b0",
# Temporary fix for pymanopt, pypi version does not work with TF2
# pip install -r requirements-external.txt

setup(
name="recommenders",
Expand Down

0 comments on commit 4d4779a

Please sign in to comment.