We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f33afc commit 8d6ffaeCopy full SHA for 8d6ffae
pip/torch.file
@@ -1,4 +1,11 @@
1
## INCLUDE torch-requires
2
3
%define PipPreBuild %{expand: %(cat %{_sourcedir}/torch-build-env)}
4
-%define PipPostInstall ln -sf python%{cms_python3_major_minor_version}/site-packages/torch/lib/*.so %{i}/lib/
+%define PipPostInstall \
5
+ pushd %{i} \
6
+ ln -sf ${PYTHON3_LIB_SITE_PACKAGES}/torch/share share \
7
+ ln -s ${PYTHON3_LIB_SITE_PACKAGES}/torch/include include \
8
+ pushd lib \
9
+ ln -sf python%{cms_python3_major_minor_version}/site-packages/torch/lib/*.so . \
10
+ popd \
11
+ popd
0 commit comments