<commit_before>import os
from distutils.core import setup, Extension

base_modules = [
    Extension('_pyecc', [
            'seccure/libseccure.c',
            'seccure/numtheory.c',
            'seccure/ecc.c',
            'seccure/serialize.c',
            'seccure/protocol.c',
            'seccure/curves.c',
            'seccure/aes256ctr.c',
            '_pyecc.c',
            'py_objects.c',
        ],
        libraries=['gcrypt'],
        extra_compile_args=['-Wall', '-Werror'])
]

packages = ['pyecc']

# if an extension is missing dependencies, distutils will attempt the build regardless
modules = filter(lambda m: reduce(lambda x, y: x and os.path.exists(y), m.depends, True), base_modules)
missing_modules = filter(lambda m: m not in modules, base_modules)
if missing_modules:
	print 'WARNING: Some Python modules are missing dependencies: %s' % ', '.join(map(lambda x: x.name, missing_modules))

setup(
    name = 'PyECC',
    description = '''A CPython module to enable Elliptical Curve Cryptography in Python''',
    version = '1.0',
    author = '<NAME>',
    author_email = '<EMAIL>',
    ext_modules=modules, 
    py_modules=['pyecc'])


<commit_msg>Updating setup.py to build properly on FreeBSD<commit_after>#!/usr/bin/env python

import os

SETUPTOOLS = False

try:
    from setuptools import setup, Extension
    SETUPTOOLS = False
except ImportError:
    from distutils.core import setup, Extension

base_modules = [
    Extension('_pyecc', [
            'seccure/libseccure.c',
            'seccure/numtheory.c',
            'seccure/ecc.c',
            'seccure/serialize.c',
            'seccure/protocol.c',
            'seccure/curves.c',
            'seccure/aes256ctr.c',
            '_pyecc.c',
            'py_objects.c',
        ],
        libraries=['gcrypt'],
        include_dirs=['/usr/include', '/usr/local/include',],
        library_dirs=['/usr/local/lib', '/usr/local/lib64',],
        extra_compile_args=['-Wall', '-Werror',]),
]

packages = ['pyecc']

# if an extension is missing dependencies, distutils will attempt the build regardless
modules = filter(lambda m: reduce(lambda x, y: x and os.path.exists(y), m.depends, True), base_modules)
missing_modules = filter(lambda m: m not in modules, base_modules)
if missing_modules:
	print 'WARNING: Some Python modules are missing dependencies: %s' % ', '.join(map(lambda x: x.name, missing_modules))

kwargs = dict(
    name = 'PyECC',
    description = '''A CPython module to enable Elliptical Curve Cryptography in Python''',
    version = '1.0',
    author = '<NAME>',
    author_email = '<EMAIL>',
    ext_modules=modules,
    py_modules=['pyecc'])

setup(**kwargs)

{'fraction_non_alphanumeric': 0.13760779902512185, 'fraction_numerical': 0.0044994375703037125, 'mean_word_length': 2.9005847953216373, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '690191', 'n_tokens_mistral': 874, 'n_tokens_neox': 867, 'n_words': 210}