代码拉取完成,页面将自动刷新
#!/usr/bin/env python3
# -*- Mode: Python; indent-tabs-mode: nil; tab-width: 4; coding: utf-8 -*-
import os
import glob
from distutils.core import setup
from subprocess import check_output
from DistUtilsExtra.command import (
build_extra, build_i18n, build_help)
disabled = []
def plugins():
return []
return [os.path.join('janitor/plugincore/plugins', name)
for name in os.listdir('janitor/plugincore/plugins')
if name.endswith('_plugin.py') and name not in disabled]
for line in check_output('dpkg-parsechangelog --format rfc822'.split(),
universal_newlines=True).splitlines():
header, colon, value = line.lower().partition(':')
if header == 'version':
version = value.strip()
break
else:
raise RuntimeError('No version found in debian/changelog')
class CustomBuild(build_extra.build_extra):
def run(self):
with open("UpdateManager/UpdateManagerVersion.py", "w") as f:
f.write("VERSION = '%s'\n" % version)
build_extra.build_extra.run(self)
setup(name='update-manager',
version=version,
packages=['UpdateManager',
'UpdateManager.backend',
'UpdateManager.Core',
'HweSupportStatus',
'janitor',
'janitor.plugincore',
],
scripts=['update-manager',
'ubuntu-security-status',
'hwe-support-status'
],
data_files=[('share/update-manager/gtkbuilder',
glob.glob("data/gtkbuilder/*.ui")
),
('share/man/man8',
glob.glob('data/*.8')
),
('share/GConf/gsettings/',
['data/update-manager.convert']),
],
cmdclass={"build": CustomBuild,
"build_i18n": build_i18n.build_i18n,
"build_help": build_help.build_help}
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。