parser.add_argument('--openvr', dest='openvr', action='store_true') parser.add_argument( '--no-vmd-plugins', dest='vmd_plugins', action='store_false', help='Disable VMD molfile plugins (libnetcdf dependency)') options, sys.argv[1:] = parser.parse_known_args(namespace=options) except ImportError: print("argparse not available") if options.help_distutils: sys.argv.append("--help") if True: import monkeypatch_distutils monkeypatch_distutils.set_parallel_jobs(options.jobs) def forms_uic(build_lib='modules'): ''' Convert Qt UI files in "modules/pmg_qt/forms" to Python files in place ''' def get_prefix_path(): ''' Return a list of paths which will be searched for "include", "include/freetype2", "lib", "lib64" etc. ''' try: return os.environ['PREFIX_PATH'].split(os.pathsep)
help="c++11: use msgpack-c header-only library; c: link against " "shared library; no: disable fast MMTF load support") parser.add_argument('--help-distutils', action="store_true", help="show help for distutils options and exit") parser.add_argument('--testing', action="store_true", help="Build C-level tests") options, sys.argv[1:] = parser.parse_known_args(namespace=options) except ImportError: print("argparse not available") if options.help_distutils: sys.argv.append("--help") if True: import monkeypatch_distutils monkeypatch_distutils.set_parallel_jobs(options.jobs) def forms_uic(build_lib='modules'): ''' Convert Qt UI files in "modules/pmg_qt/forms" to Python files in place ''' def get_prefix_path(): ''' Return a list of paths which will be searched for "include", "include/freetype2", "lib", "lib64" etc. ''' try: return os.environ['PREFIX_PATH'].split(os.pathsep) except KeyError: