pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-torch: py-yaml google-glog deps, post-extract git operations etc.



Module Name:	pkgsrc-wip
Committed By:	mayuresh <mayuresh%acm.org@localhost>
Pushed By:	mayuresh
Date:		Sat Jul 16 09:09:24 2022 +0530
Changeset:	93a059cbad19063c757ce42a05d2fd80908d02d8

Modified Files:
	py-torch/Makefile

Log Message:
py-torch: py-yaml google-glog deps, post-extract git operations etc.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=93a059cbad19063c757ce42a05d2fd80908d02d8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-torch/Makefile | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diffs:
diff --git a/py-torch/Makefile b/py-torch/Makefile
index e8d6b94c2a..ddfbc4ce06 100644
--- a/py-torch/Makefile
+++ b/py-torch/Makefile
@@ -12,8 +12,21 @@ HOMEPAGE=	https://pytorch.org/
 COMMENT=	Tensors and Dynamic neural networks in Python with GPU acceleration
 #LICENSE=	# TODO: (see mk/license.mk)
 
-WRKSRC=	${WRKDIR}/pytorch-1.12.0
+# This neeeds to be set as environment variable, not sure how
+#USE_CUDA=0
+
+DEPENDS+=	${PYPKGPREFIX}-yaml>=5.4.1:../../textproc/py-yaml
+
+WRKSRC=	${WRKDIR}/pytorch
+
+post-extract:
+	cd ${WRKDIR}; \
+	git clone --recursive https://github.com/pytorch/pytorch; \
+	cd pytorch; \
+	git submodule sync; \
+	git submodule update --init --recursive --jobs 0
 
 # url2pkg-marker (please do not remove this line.)
 .include "../../lang/python/egg.mk"
+.include "../../devel/google-glog/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index