Lines 4-10
Link Here
|
4 |
EAPI=8 |
4 |
EAPI=8 |
5 |
|
5 |
|
6 |
PYTHON_COMPAT=( python3_{9..11} ) |
6 |
PYTHON_COMPAT=( python3_{9..11} ) |
7 |
inherit python-single-r1 cmake cuda flag-o-matic |
7 |
inherit python-single-r1 cmake cuda flag-o-matic prefix |
8 |
|
8 |
|
9 |
MYPN=pytorch |
9 |
MYPN=pytorch |
10 |
MYP=${MYPN}-${PV} |
10 |
MYP=${MYPN}-${PV} |
Lines 97-102
Link Here
|
97 |
pushd torch/csrc/jit/serialization || die |
97 |
pushd torch/csrc/jit/serialization || die |
98 |
flatc --cpp --gen-mutable --scoped-enums mobile_bytecode.fbs || die |
98 |
flatc --cpp --gen-mutable --scoped-enums mobile_bytecode.fbs || die |
99 |
popd |
99 |
popd |
|
|
100 |
# prefixify the hardcoded paths, after all patches are applied |
101 |
hprefixify $(find . -type f -name \*.cmake -o -name \*CMakeLists.txt) |
100 |
} |
102 |
} |
101 |
|
103 |
|
102 |
src_configure() { |
104 |
src_configure() { |