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

# $Id$

"""Setup script for the PycURL module distribution."""

import os, sys
from distutils.core import setup
from distutils.extension import Extension
from distutils.util import split_quoted

include_dirs = []
define_macros = []
library_dirs = []
libraries = []
runtime_library_dirs = []
extra_objects = []
extra_compile_args = []
extra_link_args = []

if sys.platform == "win32":
    # Windows users have to configure the CURL_DIR path parameter to match
    # their cURL source installation.  The path set here is just an example
    # and thus unlikely to match your installation.
    CURL_DIR = r"c:\src\curl-7.9.8"
    include_dirs.append(os.path.join(CURL_DIR, "include"))
    extra_objects.append(os.path.join(CURL_DIR, "lib", "libcurl.lib"))
else:
    # Find out the rest the hard way
    cflags = split_quoted(os.popen("curl-config --cflags").read())
    for e in cflags[:]:
        if e[:2] == "-I":
            include_dirs.append(e[2:])
        else:
            extra_compile_args.append(e)
    libs = split_quoted(os.popen("curl-config --libs").read())
    for e in libs[:]:
        if e[:2] == "-l":
            libraries.append(e[2:])
        elif e[:2] == "-L":
            library_dirs.append(e[2:])
        else:
            extra_link_args.append(e)
    if not libraries:
        libraries = ["curl"]

    # Add extra compile flag for MacOS X
    if sys.platform[:-1] == "darwin":
        extra_link_args.append("-flat_namespace")


###############################################################################

setup (name="pycurl",
       version="7.9.8.2",
       description="PycURL -- cURL library module for Python",
       author="<NAME>",
       author_email="<EMAIL>",
       url="http://pycurl.sourceforge.net/",
       data_files = [(os.path.join('doc', 'pycurl'),
                    ['README', 'COPYING', 'INSTALL', 'TODO'])],
       ext_modules=[Extension(name="pycurl",
                              sources=[os.path.join("src", "curl.c")],
                              include_dirs=include_dirs,
                              define_macros=define_macros,
                              library_dirs=library_dirs,
                              libraries=libraries,
                              runtime_library_dirs=runtime_library_dirs,
                              extra_objects=extra_objects,
                              extra_compile_args=extra_compile_args,
                              extra_link_args=extra_link_args)]
        )
<commit_msg>include markus in the author list in setup as well<commit_after>#! /usr/bin/env python

# $Id$

"""Setup script for the PycURL module distribution."""

import os, sys
from distutils.core import setup
from distutils.extension import Extension
from distutils.util import split_quoted

include_dirs = []
define_macros = []
library_dirs = []
libraries = []
runtime_library_dirs = []
extra_objects = []
extra_compile_args = []
extra_link_args = []

if sys.platform == "win32":
    # Windows users have to configure the CURL_DIR path parameter to match
    # their cURL source installation.  The path set here is just an example
    # and thus unlikely to match your installation.
    CURL_DIR = r"c:\src\curl-7.9.8"
    include_dirs.append(os.path.join(CURL_DIR, "include"))
    extra_objects.append(os.path.join(CURL_DIR, "lib", "libcurl.lib"))
else:
    # Find out the rest the hard way
    cflags = split_quoted(os.popen("curl-config --cflags").read())
    for e in cflags[:]:
        if e[:2] == "-I":
            include_dirs.append(e[2:])
        else:
            extra_compile_args.append(e)
    libs = split_quoted(os.popen("curl-config --libs").read())
    for e in libs[:]:
        if e[:2] == "-l":
            libraries.append(e[2:])
        elif e[:2] == "-L":
            library_dirs.append(e[2:])
        else:
            extra_link_args.append(e)
    if not libraries:
        libraries = ["curl"]

    # Add extra compile flag for MacOS X
    if sys.platform[:-1] == "darwin":
        extra_link_args.append("-flat_namespace")


###############################################################################

setup (name="pycurl",
       version="7.9.8.2",
       description="PycURL -- cURL library module for Python",
       author="<NAME>, <NAME>",
       author_email="<EMAIL>, <EMAIL>",
       url="http://pycurl.sourceforge.net/",
       data_files = [(os.path.join('doc', 'pycurl'),
                    ['README', 'COPYING', 'INSTALL', 'TODO'])],
       ext_modules=[Extension(name="pycurl",
                              sources=[os.path.join("src", "curl.c")],
                              include_dirs=include_dirs,
                              define_macros=define_macros,
                              library_dirs=library_dirs,
                              libraries=libraries,
                              runtime_library_dirs=runtime_library_dirs,
                              extra_objects=extra_objects,
                              extra_compile_args=extra_compile_args,
                              extra_link_args=extra_link_args)]
        )

{'fraction_non_alphanumeric': 0.15402658326817825, 'fraction_numerical': 0.006254886630179828, 'mean_word_length': 2.2509529860228716, 'pattern_counts': {'":': 10, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '570045', 'n_tokens_mistral': 1548, 'n_tokens_neox': 1509, 'n_words': 327}