|
@@ -24,6 +24,7 @@ |
|
|
from setuptools import setup, find_packages, Extension |
|
|
from setuptools import setup, find_packages, Extension |
|
|
|
|
|
|
|
|
from mwparserfromhell import __version__ |
|
|
from mwparserfromhell import __version__ |
|
|
|
|
|
from mwparserfromhell.compat import py3k |
|
|
|
|
|
|
|
|
with open("README.rst") as fp: |
|
|
with open("README.rst") as fp: |
|
|
long_docs = fp.read() |
|
|
long_docs = fp.read() |
|
@@ -37,7 +38,7 @@ tokenizer = Extension("mwparserfromhell.parser._tokenizer", |
|
|
setup( |
|
|
setup( |
|
|
name = "mwparserfromhell", |
|
|
name = "mwparserfromhell", |
|
|
packages = find_packages(exclude=("tests",)), |
|
|
packages = find_packages(exclude=("tests",)), |
|
|
ext_modules = [tokenizer], |
|
|
|
|
|
|
|
|
ext_modules = [] if py3k else [tokenizer], |
|
|
test_suite = "tests", |
|
|
test_suite = "tests", |
|
|
version = __version__, |
|
|
version = __version__, |
|
|
author = "Ben Kurtovic", |
|
|
author = "Ben Kurtovic", |
|
|