Beispiel #1
0
def test_sanity():
    # This executes numscons unit tests: this is far from convering everything,
    # but at least guarantees basic sanity of the package
    ver = build_fverstring()
    cmd = "tar -xjf numscons-%s.tar.bz2" % ver
    nofailexec([cmd], cwd = "dist")

    cmd = "PYTHONPATH=%s:$PYTHONPATH python setup.py scons" % os.path.join(os.getcwd(), "dist", "numscons-%s" % ver)
    nofailexec([cmd], cwd = "dist/numscons-%s/tests" % ver)
Beispiel #2
0
def test_sanity():
    # This executes numscons unit tests: this is far from covering everything,
    # but at least guarantees basic sanity of the package
    ver = build_fverstring()
    cmd = "tar -xjf numscons-%s.tar.bz2" % ver
    nofailexec([cmd], cwd="dist")

    cmd = "PYTHONPATH=%s:$PYTHONPATH python setup.py scons" % \
            os.path.join(os.getcwd(), "dist", "numscons-%s" % ver)
    nofailexec([cmd], cwd="dist/numscons-%s/tests" % ver)
Beispiel #3
0
    def add_defaults (self):
        old_sdist.add_defaults(self)

        dist = self.distribution

        if dist.data_files is None:
            dist.data_files = []

        for d in dist.data_dir:
            src_data_files = []
            for roots, dirs, files in os.walk(d):
                for file in files:
                    src_data_files.append(os.path.join(roots, file))
            self.filelist.extend(src_data_files)

# Main setup method
import release as R

R.write_version()
setup(cmdclass = {'install': install, 'install_data': install_data, 'sdist': sdist},
      distclass     = Distribution,
      name          = R.NAME,
      version       = R.build_fverstring(),
      description   = R.DESCRIPTION,
      author        = R.AUTHOR,
      author_email  = R.AUTHOR_EMAIL,
      packages      = R.PACKAGES,
      package_data  = R.PACKAGE_DATA,
      data_dir      = R.DATA_DIR
      )
Beispiel #4
0
#!/usr/bin/env python
import os
import shutil

from setuptools import setup

# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
# update it when the contents of directories change.
if os.path.exists('MANIFEST'): os.remove('MANIFEST')

# Main setup method
import release as R

R.write_version()
setup(name=R.NAME,
      version=R.build_fverstring(),
      description=R.DESCRIPTION,
      author=R.AUTHOR,
      author_email=R.AUTHOR_EMAIL,
      packages=R.PACKAGES,
      package_data=R.PACKAGE_DATA,
      include_package_data=True)