Esempio n. 1
0
      ext_modules=modules)

############################################################
# .py source compiling
############################################################
if not UPDATE_MODULES:
    build.compile_sources()

############################################################
# This section for developing purpose only
# Command 'python setup.py build_update' allows
# automating build and copying of native extensions
# into package directory
############################################################
if UPDATE_MODULES:
    build.copy_modules(modules)

############################################################
# Implementation of bdist_deb command
############################################################
if DEB_PACKAGE:
    utils.deb.DebBuilder(
        name=NAME,
        version=VERSION,
        maintainer='%s <%s>' % (AUTHOR, AUTHOR_EMAIL),
        depends=deb_depends,
        homepage=URL,
        description=DESCRIPTION,
        long_description=LONG_DEB_DESCRIPTION,
        section='graphics',
        package_dirs=build.get_package_dirs(excludes=EXCLUDES),
Esempio n. 2
0
      ext_modules=modules)

############################################################
# .py source compiling
############################################################
if not UPDATE_MODULES:
    build.compile_sources()

############################################################
# 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:
    build.copy_modules(modules, src_path)

############################################################
# Implementation of bdist_portable command
############################################################
if PORTABLE_PACKAGE:
    print 40 * '#'
    print 'PORTABLE_PACKAGE'
    print 40 * '#'
    PKGS = ['sk1', 'uc2', 'wal']
    portable_name = '%s-%s-%s-portable' % (NAME, VERSION, get_os_prefix())
    libdir = os.path.join('build', 'lib' + get_build_suffix())

    os.mkdir(portable_name)

    from zipfile import ZipFile