from setuptools import setup, Extension, find_packages sys.path.insert(0, 'src/') from netzob import release from resources.sdist.manpage_command import manpage_command from resources.sdist.pybuild_command import pybuild_command from resources.sdist.test_command import test_command from resources.sdist.utils import find_data_files, opj, getPluginPaths # +---------------------------------------------------------------------------- # | Definition of variables # +---------------------------------------------------------------------------- # Path to the resources staticResourcesPath = opj("resources", "static") netzobStaticResourcesPath = opj(staticResourcesPath, "netzob") pluginsStaticResourcesPath = opj(staticResourcesPath, "plugins") # +---------------------------------------------------------------------------- # | Compute the compilation arguments given the current compilation profile # +---------------------------------------------------------------------------- # compileProfile = "[no-verify] devel|release" # # Note : # if defined, the environment variable "NETZOB_COMPILE_PROFILE" sets # the compileProfile # # Available compilation profile # - devel : no optimization, include debugging symbols and stop on compilation warnings # - release : activate optimization and symbols are stripped (default mode)
# Extract the long description from README.rst and NEWS.rst files README = open("README.md", "rt").read() NEWS = open("CHANGELOG.md", "rt").read() # +---------------------------------------------------------------------------- # | Extensions in the build operations (test, ...) # +---------------------------------------------------------------------------- CMD_CLASS = {"test": test_command} # +---------------------------------------------------------------------------- # | Definition of the package # +---------------------------------------------------------------------------- setup( name=release.name, packages=find_packages(where="src"), package_dir={"pylstar": opj("src", "pylstar")}, data_files=data_files, install_requires=dependencies, extras_require=extra_dependencies, dependency_links=dependency_links, version=release.version, license=release.licenseName, description=release.description, platforms=release.platforms, author=release.author, author_email=release.author_email, url=release.url, download_url=release.download_url, keywords=release.keywords, long_description=README + "\n" + NEWS, cmdclass=CMD_CLASS,
import uuid from setuptools import setup, Extension, find_packages sys.path.insert(0, 'src/') from netzob import release from resources.sdist.pybuild_command import pybuild_command from resources.sdist.test_command import test_command from resources.sdist.utils import find_data_files, opj, getPluginPaths # +---------------------------------------------------------------------------- # | Definition of variables # +---------------------------------------------------------------------------- # Path to the resources staticResourcesPath = opj("resources", "static") netzobStaticResourcesPath = opj(staticResourcesPath, "netzob") # +---------------------------------------------------------------------------- # | Compute the compilation arguments given the current compilation profile # +---------------------------------------------------------------------------- # compileProfile = "[no-verify] devel|release" # # Note : # if defined, the environment variable "NETZOB_COMPILE_PROFILE" sets # the compileProfile # # Available compilation profile # - devel : no optimization, include debugging symbols and stop on compilation warnings # - release : activate optimization and symbols are stripped (default mode) # Static analysis