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 ee511df commit d0182d1Copy full SHA for d0182d1
setup.py
@@ -78,9 +78,12 @@ def build_extension(self, ext):
78
with open("pybind11/LICENSE", "r") as license_file:
79
licenses = license_file.read() + "\n\n\n"
80
81
-with urllib.request.urlopen(
82
- "https://raw.githubusercontent.com/Geant4/geant4/v10.7.1/LICENSE") as resp:
83
- licenses += resp.read().decode("utf-8")
+try:
+ with urllib.request.urlopen(
+ "https://raw.githubusercontent.com/Geant4/geant4/v10.7.1/LICENSE") as resp:
84
+ licenses += resp.read().decode("utf-8")
85
+except:
86
+ pass
87
88
with open("LICENSE-3RD-PARTY", "w") as license_file:
89
license_file.write(licenses)
0 commit comments