<commit_before>#!/usr/bin/env python3

from os import curdir, pardir
from os.path import join
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

setup(
    name = "VapourSynth",
    description = "A frameserver for the 21st century",
    url = "http://www.vapoursynth.com/",
    download_url = "http://code.google.com/p/vapoursynth/",
    author = "<NAME>",
    author_email = "<EMAIL>",
    license = "LGPL 2.1 or later",
    version = "1.0.0",
    long_description = "A portable replacement for Avisynth",
    platforms = "All",
    cmdclass = {'build_ext': build_ext},
    ext_modules = [Extension("vapoursynth", [join("src", "cython", "vapoursynth.pyx")],
                             libraries = ["vapoursynth"],
                             library_dirs = [curdir, "build"],
                             include_dirs = [curdir, join("src", "cython")])]
)<commit_msg>Use the Cython Extension class so we can place generated C files in the build dir.<commit_after>#!/usr/bin/env python3

from os import curdir, pardir
from os.path import join
from distutils.core import setup
from Cython.Distutils import Extension, build_ext

setup(
    name = "VapourSynth",
    description = "A frameserver for the 21st century",
    url = "http://www.vapoursynth.com/",
    download_url = "http://code.google.com/p/vapoursynth/",
    author = "<NAME>",
    author_email = "<EMAIL>",
    license = "LGPL 2.1 or later",
    version = "1.0.0",
    long_description = "A portable replacement for Avisynth",
    platforms = "All",
    cmdclass = {'build_ext': build_ext},
    ext_modules = [Extension("vapoursynth", [join("src", "cython", "vapoursynth.pyx")],
                             libraries = ["vapoursynth"],
                             library_dirs = [curdir, "build"],
                             include_dirs = [curdir, join("src", "cython")],
                             cython_c_in_temp = 1)]
)
{'fraction_non_alphanumeric': 0.13309535951045384, 'fraction_numerical': 0.008669046404895462, 'mean_word_length': 2.6266173752310538, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '840993', 'n_tokens_mistral': 629, 'n_tokens_neox': 620, 'n_words': 160}