src/m/a/matplotlib-HEAD/matplotlib/setupext.py matplotlib(Download)
import configparser
from io import StringIO
if sys.platform != 'win32':
from subprocess import getstatusoutput
BUILT_PNG = False
BUILT_AGG = False
has_pkgconfig.cache = False
else:
#print 'environ', os.environ['PKG_CONFIG_PATH']
status, output = getstatusoutput("pkg-config --help")
has_pkgconfig.cache = (status == 0)
return has_pkgconfig.cache
has_pkgconfig.cache = None
'-U': 'undef_macros'}
cmd = "%s %s %s" % (pkg_config_exec, flags, packages)
status, output = getstatusoutput(cmd)
if status == 0:
for token in output.split():
attr = _flags.get(token[:2], None)
def get_pkgconfig_version(package):
default = "found, but unknown version (no pkg-config)"
if not has_pkgconfig():
return default
status, output = getstatusoutput(
"pkg-config %s --modversion" % (package))
src/m/a/matplotlib-HEAD/setupext.py matplotlib(Download)
import configparser
from io import StringIO
if sys.platform != 'win32':
from subprocess import getstatusoutput
BUILT_PNG = False
BUILT_AGG = False
has_pkgconfig.cache = False
else:
#print 'environ', os.environ['PKG_CONFIG_PATH']
status, output = getstatusoutput("pkg-config --help")
has_pkgconfig.cache = (status == 0)
return has_pkgconfig.cache
has_pkgconfig.cache = None
'-U': 'undef_macros'}
cmd = "%s %s %s" % (pkg_config_exec, flags, packages)
status, output = getstatusoutput(cmd)
if status == 0:
for token in output.split():
attr = _flags.get(token[:2], None)
def get_pkgconfig_version(package):
default = "found, but unknown version (no pkg-config)"
if not has_pkgconfig():
return default
status, output = getstatusoutput(
"pkg-config %s --modversion" % (package))
src/p/y/pyci-HEAD/plugins_enabled/network/network.py pyci(Download)
try:
from commands import getstatusoutput, getoutput
except: # getstatusoutput was moved to subprocess in Python 3
from subprocess import getstatusoutput
try: # Note: The json module is only present in Python 2.6+
import json
except: # If not found, try importing simplejson which will be required if using Python 2.4 or Python 2.5
else:
new_lease_file += line
# Next we stop dnsmasq...
return_code, output = getstatusoutput('/etc/init.d/dnsmasq stop')
if return_code != 0:
raise dnsmasqException
# Now we write our new lease file...
lease_file = open(lease_filepath, 'w')
lease_file.write(new_lease_file)
lease_file.close()
# Finally we start dnsmasq back up...
return_code, output = getstatusoutput('/etc/init.d/dnsmasq start')
def interfaces_tab(self):
"""Render the interfaces tab"""
_template = plugin_template(self, "templates/interfaces_tab.mako")
# We need to get the name of the bridge (if any)
retcode, output = getstatusoutput('brctl show')
if retcode != 0: