Skip to content

Commit 8d6ffae

Browse files
committed
created links for share/include dirs
1 parent 2f33afc commit 8d6ffae

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pip/torch.file

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
## INCLUDE torch-requires
22

33
%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/
4+
%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

Comments
 (0)