summaryrefslogtreecommitdiff
path: root/science/py-pymol/files/patch-create__shadertext.py
diff options
context:
space:
mode:
Diffstat (limited to 'science/py-pymol/files/patch-create__shadertext.py')
-rw-r--r--science/py-pymol/files/patch-create__shadertext.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/science/py-pymol/files/patch-create__shadertext.py b/science/py-pymol/files/patch-create__shadertext.py
new file mode 100644
index 000000000000..20bf5c027e0e
--- /dev/null
+++ b/science/py-pymol/files/patch-create__shadertext.py
@@ -0,0 +1,34 @@
+--- create_shadertext.py.orig 2017-03-09 18:16:07 UTC
++++ create_shadertext.py
+@@ -93,19 +93,20 @@ def create_shadertext(shaderdir, shaderd
+
+ def create_buildinfo(outputdir, pymoldir='.'):
+
+- try:
+- sha = Popen(['git', 'rev-parse', 'HEAD'], cwd=pymoldir,
+- stdout=PIPE).stdout.read().strip().decode()
+- except OSError:
+- sha = ''
++ #try:
++ # sha = Popen(['git', 'rev-parse', 'HEAD'], cwd=pymoldir,
++ # stdout=PIPE).stdout.read().strip().decode()
++ #except OSError:
++ # sha = ''
++ sha = 'n/a'
+
+ rev = 0
+- try:
+- for line in Popen(['svn', 'info'], cwd=pymoldir, stdout=PIPE).stdout:
+- if line.startswith(b'Last Changed Rev'):
+- rev = int(line.split()[3])
+- except OSError:
+- pass
++ #try:
++ # for line in Popen(['svn', 'info'], cwd=pymoldir, stdout=PIPE).stdout:
++ # if line.startswith(b'Last Changed Rev'):
++ # rev = int(line.split()[3])
++ #except OSError:
++ # pass
+
+ with openw(os.path.join(outputdir, 'PyMOLBuildInfo.h')) as out:
+ print('''