Пример #1
0
                          dst=install_path)

############################################################
# Implementation of bdist_rpm command
############################################################
if RPM_PACKAGE:
    buildutils.RpmBuilder(
        name=NAME,
        version=VERSION,
        release='0',
        arch='',
        maintainer='%s <%s>' % (AUTHOR, AUTHOR_EMAIL),
        summary=DESCRIPTION,
        description=LONG_DESCRIPTION,
        license=LICENSE,
        url=URL,
        depends=rpm_depends.split(' '),
        build_script='setup-uc2.py',
        install_path=install_path,
        data_files=data_files,
    )

if CLEAR_BUILD:
    buildutils.clear_build()

for item in [
        'MANIFEST', 'MANIFEST.in', 'src/script/uniconvertor', 'setup.cfg'
]:
    if os.path.lexists(item):
        os.remove(item)
Пример #2
0
# This section for developing purpose only
# Command 'python setup.py build_update' allows
# automating build and native extension copying
# into package directory
############################################################
if UPDATE_MODULES: buildutils.copy_modules(modules)

############################################################
# Implementation of bdist_deb command
############################################################
if DEB_PACKAGE:
    bld = buildutils.DEB_Builder(name=NAME,
                                 version=VERSION,
                                 maintainer='%s <%s>' % (AUTHOR, AUTHOR_EMAIL),
                                 depends=deb_depends,
                                 homepage=URL,
                                 description=DESCRIPTION,
                                 long_description=LONG_DEB_DESCRIPTION,
                                 package_dirs=buildutils.get_package_dirs(),
                                 package_data=package_data,
                                 scripts=scripts,
                                 data_files=data_files,
                                 deb_scripts=deb_scripts,
                                 dst=install_path)
    bld.build()

if CLEAR_BUILD: buildutils.clear_build()

for item in ['MANIFEST', 'MANIFEST.in', 'src/script/sk1', 'setup.cfg']:
    if os.path.lexists(item): os.remove(item)
Пример #3
0
# Command 'python setup.py build_update' allows
# automating build and native extension copying
# into package directory
############################################################
if UPDATE_MODULES: buildutils.copy_modules(modules)


############################################################
# Implementation of bdist_deb command
############################################################
if DEB_PACKAGE:
	bld = buildutils.DEB_Builder(name=NAME,
					version=VERSION,
					maintainer='%s <%s>' % (AUTHOR, AUTHOR_EMAIL),
					depends=deb_depends,
					homepage=URL,
					description=DESCRIPTION,
					long_description=LONG_DEB_DESCRIPTION,
					package_dirs=buildutils.get_package_dirs(excludes=EXCLUDES),
					package_data=package_data,
					scripts=scripts,
					data_files=data_files,
					deb_scripts=deb_scripts,
					dst=install_path)
	bld.build()

if CLEAR_BUILD: buildutils.clear_build()

for item in ['MANIFEST', 'MANIFEST.in', 'src/script/sk1', 'setup.cfg']:
	if os.path.lexists(item): os.remove(item)