Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def run(self):
create_version_file()
setuptools.command.install.install.run(self)
#subprocess.check_call("python tests/unit_test.py".split())
def run(self):
install.run(self)
# TODO: ask the user for WSGI and DB settings
pass
def run(self):
# check if webtorrent is installed
if subprocess.call(["webtorrent", "-v"], shell=True):
subprocess.call("npm install webtorrent-cli -g", shell=True)
install.run(self)
def run(self):
print("TODO: PostInstallCommand")
install.run(self)
def run(self):
install.run(self)
_DownloadVsWhere()
def run(self):
_install.run(self)
bins=[x for x in os.listdir("gem/gembinaries")]
for file in self.get_outputs():
if os.path.basename(file) in bins:
print "Making %s executable" % file
os.chmod(file, 0755)
def run(self):
install.run(self)
service = self.service # will be 1 or None
if service is not None:
cl_path = self.install_scripts
cl_path = cl_path+'/ads2bibdesk'
service_wflow = rel_path(os.path.join("service", "Add to BibDesk.workflow",
"Contents", "document.wflow"))
app_wflow = rel_path(os.path.join("service", "Add to BibDesk.app",
"Contents", "document.wflow"))
for idx, workflow in enumerate([service_wflow, app_wflow]):
with open(workflow, 'rb') as fp:
pl = plistlib.load(fp)
pl['actions'][idx]['action']['ActionParameters']['COMMAND_STRING'] = cl_path+' "$1"'
def run(self):
subprocess.call('scripts/post_install.sh')
install.run(self)
def run(self):
install.run(self)
post_install()
def run(self):
_install.run(self)
# Do what distutils install_data used to do... *sigh*
# Despite what the setuptools docs say, the omission of this
# in setuptools is a bug, not a feature.
print("== Installing Nautilus Python extension...")
src_file = "nautilus_open_any_terminal/open_any_terminal_extension.py"
dst_dir = os.path.join(self.install_data, "share/nautilus-python/extensions")
self.mkpath(dst_dir)
dst_file = os.path.join(dst_dir, os.path.basename(src_file))
self.copy_file(src_file, dst_file)
print("== Done!")
print("== Installing GSettings Schema")
src_file = "./nautilus_open_any_terminal/schemas/com.github.stunkymonkey.nautilus-open-any-terminal.gschema.xml"
dst_dir = os.path.join(self.install_data, "share/glib-2.0/schemas")
self.mkpath(dst_dir)