summaryrefslogtreecommitdiff
path: root/science/py-pymol/files/patch-setup.py
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2017-12-19 19:49:17 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2017-12-19 19:49:17 +0000
commita03c50d80803c72f85bdbc48b2efb297814dfa8e (patch)
treeed08f9c29ba9e490d2d23920f9493fd19b082d05 /science/py-pymol/files/patch-setup.py
parentdevel/py-mypy: update to 0.560 (diff)
Re-added port: science/py-pymol: OpenGL based molecular visualization system (existed 2002/08/13-2014/09/01, deleted in r366862)
Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D12902
Notes
Notes: svn path=/head/; revision=456763
Diffstat (limited to '')
-rw-r--r--science/py-pymol/files/patch-setup.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/science/py-pymol/files/patch-setup.py b/science/py-pymol/files/patch-setup.py
new file mode 100644
index 000000000000..9c43d171c4cb
--- /dev/null
+++ b/science/py-pymol/files/patch-setup.py
@@ -0,0 +1,22 @@
+--- setup.py.orig 2017-03-09 18:16:07 UTC
++++ setup.py
+@@ -52,6 +52,8 @@ try:
+ "keyword support.")
+ parser.add_argument('--help-distutils', action="store_true",
+ help="show help for distutils options and exit")
++ parser.add_argument('--single-version-externally-managed', action="store_true",
++ help="single-version-externally-managed")
+ options, sys.argv[1:] = parser.parse_known_args(namespace=options)
+ except ImportError:
+ print("argparse not available")
+@@ -318,8 +320,8 @@ else: # unix style (linux, mac, ...)
+
+ # optimization currently causes a clang segfault on OS X 10.9 when
+ # compiling layer2/RepCylBond.cpp
+- if sys.platform != 'darwin':
+- ext_comp_args += ["-O3"]
++ #if sys.platform != 'darwin':
++ # ext_comp_args += ["-O3"]
+
+ def get_pymol_version():
+ return re.findall(r'_PyMOL_VERSION "(.*)"', open('layer0/Version.h').read())[0]