~corey.bryant/ubuntu/utopic/python-pyscss/mir

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2014-06-26 12:10:36 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140626121036-3dv13zn5zptk9fpx
Tags: 1.2.0.post3-1
* Team upload.
* New upstream release (Closes: #738776).
* Added a debian/gbp.conf.
* Added missing ${python:Depends}
* Added Python 3 support.
* Removed duplicate debhelper build-depends.
* Cannonical VCS URLs.
* Standards-Version: is now 3.9.5.
* Added a watch file.
* override dh helpers which the package doesn't use.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
import os
3
3
import sys
4
4
from setuptools import setup, Extension, Feature
 
5
from setuptools.dist import Distribution
5
6
from distutils.command.build_ext import build_ext
6
7
from distutils.errors import CCompilerError, DistutilsExecError, \
7
8
    DistutilsPlatformError
8
9
 
 
10
# Need to install `six` to be able to import from the scss namespace
 
11
Distribution(dict(setup_requires='six'))
 
12
 
9
13
from scss.scss_meta import PROJECT, URL, VERSION, AUTHOR, AUTHOR_EMAIL, LICENSE, DOWNLOAD_URL
10
14
 
11
15
# fail safe compilation shamelessly stolen from the simplejson
18
22
    'optional C speed-enhancement module',
19
23
    standard=True,
20
24
    ext_modules=[
 
25
        # NOTE: header files are included by MANIFEST.in; Extension does not
 
26
        # include headers in an sdist (since they're typically in /usr/lib)
21
27
        Extension(
22
28
            'scss._speedups',
23
29
            sources=['scss/src/_speedups.c', 'scss/src/block_locator.c', 'scss/src/scanner.c'],
33
39
    ext_errors += (IOError,)
34
40
 
35
41
 
36
 
extra = {}
37
 
if sys.version_info >= (3, 0):
38
 
    extra['use_2to3'] = True
39
 
 
40
 
 
41
42
class BuildFailed(Exception):
42
43
    pass
43
44
 
100
101
            "Topic :: Text Processing :: Markup",
101
102
            "Topic :: Software Development :: Libraries :: Python Modules"
102
103
        ],
103
 
        packages=['scss'],
104
 
        package_data={'scss': ['tests.rst']},
 
104
        install_requires=[
 
105
            'six',
 
106
        ],
 
107
        packages=[
 
108
            'scss',
 
109
            'scss.functions',
 
110
            'scss.functions.compass',
 
111
        ],
105
112
        cmdclass={'build_ext': ve_build_ext},
106
113
        features=features,
107
114
        entry_points="""
108
115
        [console_scripts]
109
116
        pyscss = scss.tool:main
110
117
        """,
111
 
        **extra
112
118
    )
113
119
 
114
120