예제 #1
0
    if '$APP_INSTALL_PATH' in line:
        line = line.replace('$APP_INSTALL_PATH', install_path)
    fileptr2.write(line)
fileptr.close()
fileptr2.close()

#Preparing MANIFEST.in and setup.cfg
shutil.copy2('MANIFEST.in_sk1', 'MANIFEST.in')
shutil.copy2('setup.cfg_sk1', 'setup.cfg')

############################################################
# Native extensions
############################################################
from native_mods import make_modules

modules += make_modules(src_path, include_path)

############################################################
# Setup routine
############################################################
from distutils.core import setup

setup(name=NAME,
      version=VERSION,
      description=DESCRIPTION,
      author=AUTHOR,
      author_email=AUTHOR_EMAIL,
      maintainer=MAINTAINER,
      maintainer_email=MAINTAINER_EMAIL,
      license=LICENSE,
      url=URL,
예제 #2
0
fileptr = open('setup.cfg_sk1', 'rb')
fileptr2 = open('setup.cfg', 'wb')
content = fileptr.read()
if rpm_depends:
	content += '\nrequires = ' + rpm_depends
fileptr2.write(content)
fileptr.close()
fileptr2.close()

############################################################
# Native extensions
############################################################
from native_mods import make_modules

modules += make_modules(src_path, include_path)

############################################################
# Setup routine
############################################################
from distutils.core import setup


setup(name=NAME,
	version=VERSION,
	description=DESCRIPTION,
	author=AUTHOR,
	author_email=AUTHOR_EMAIL,
	maintainer=MAINTAINER,
	maintainer_email=MAINTAINER_EMAIL,
	license=LICENSE,