Skip to content

Commit a3ec4ff

Browse files
committed
Add patch for not requiring PyBind11 download
1 parent 481b889 commit a3ec4ff

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
From 4a48ba57e0cab63d357faf7adf93cf61106221f0 Mon Sep 17 00:00:00 2001
2+
From: Alexander Grund <[email protected]>
3+
Date: Mon, 7 Sep 2020 12:40:56 +0200
4+
Subject: [PATCH] Remove pybind11 from required submodules
5+
6+
This can be taken from the system in which case it is not used from the
7+
submodule. Hence the check here limits the usage unneccessarily
8+
---
9+
setup.py | 1 -
10+
1 file changed, 1 deletion(-)
11+
12+
diff --git a/setup.py b/setup.py
13+
index 8c060a1c5e3f3..c91916ab1b1e8 100644
14+
--- a/setup.py
15+
+++ b/setup.py
16+
@@ -309,7 +309,6 @@ def check_file(f):
17+
sys.exit(1)
18+
19+
check_file(os.path.join(third_party_path, "gloo", "CMakeLists.txt"))
20+
- check_file(os.path.join(third_party_path, "pybind11", "CMakeLists.txt"))
21+
check_file(os.path.join(third_party_path, 'cpuinfo', 'CMakeLists.txt'))
22+
check_file(os.path.join(third_party_path, 'tbb', 'Makefile'))
23+
check_file(os.path.join(third_party_path, 'onnx', 'CMakeLists.txt'))

easybuild/easyconfigs/p/PyTorch/PyTorch-1.6.0-fosscuda-2019b-Python-3.7.4.eb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ sources = [
199199
},
200200
]
201201
patches = [
202+
'%(name)s-1.4.0_fix-system-pybind11.patch',
202203
'%(name)s-%(version)s_fix-missing-source-dir.patch',
203204
'%(name)s-%(version)s_fix-test-cuda.patch',
204205
'%(name)s-%(version)s_fix-test-tensorexpr.patch',
@@ -241,6 +242,7 @@ checksums = [
241242
'be111cf161b587812fa3b106fe550efb6f129b8b0b702fef32fac23af9580e5e'),
242243
'9d78a64a4456eb0caeba8742080c39e07019114c1f4914f0e1ffa8f0a507c40f', # tensorpipe-20200626.tar.gz
243244
'5ca4e9091f3231d8ad8801862dc4e851c23af89c69141d27723157776f7291e7', # libuv-20200419.tar.gz
245+
'1c9f36f959ea5d7cf0d4ca678ec6bf60ef9ed16c556f97197aa018c7b1e5e21d', # PyTorch-1.4.0_fix-system-pybind11.patch
244246
'f3725477d554800a19a8d7f4ab300ab7b70da76b62328081c0ed1f8517c6a61c', # PyTorch-1.6.0_fix-missing-source-dir.patch
245247
'adf21e77dbc5e60fd46fe21fceb908633b0da7d4fc9b6a3ea7f7cfb0c4a44678', # PyTorch-1.6.0_fix-test-cuda.patch
246248
'37c19e286f4090115bc67989e537241f2988041ef5c3ff6d02d8c736d8703090', # PyTorch-1.6.0_fix-test-tensorexpr.patch

0 commit comments

Comments
 (0)