This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7b4f44
commit c373a6b
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
PY_VER=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))") | ||
|
||
# Install python modules | ||
mkdir -p ${PREFIX}/inferno | ||
cp -r inferno/* ${PREFIX}/inferno | ||
echo "${PREFIX}" > ${PREFIX}/lib/python${PY_VER}/site-packages/inferno.pth | ||
python -m compileall ${PREFIX}/inferno |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package: | ||
name: inferno | ||
|
||
{% set tagged_version = GIT_DESCRIBE_TAG|replace("v","")|replace("-", ".") %} | ||
|
||
# If we're using a non-tagged revision, append '.postN' to the version | ||
{% if GIT_DESCRIBE_NUMBER|int != 0 %} | ||
{% set tagged_version = tagged_version + '.post' + GIT_DESCRIBE_NUMBER %} | ||
{% endif %} | ||
|
||
version: {{tagged_version}} | ||
|
||
source: | ||
path: .. | ||
|
||
build: | ||
number: 1 | ||
string: py_{{PKG_BUILDNUM}}_g{{GIT_FULL_HASH[:7]}} | ||
|
||
requirements: | ||
build: | ||
- python {{PY_VER}}* | ||
run: | ||
- python {{PY_VER}}* | ||
- pytorch | ||
- torchvision | ||
- pyyaml | ||
- scipy | ||
- scikit-image | ||
- h5py | ||
- dill | ||
|
||
test: | ||
imports: | ||
- inferno | ||
|
||
about: | ||
license: Apache License 2.0 | ||
summary: A utility library around PyTorch |