<commit_before>#!/usr/bin/env python
from setuptools import setup, Extension, find_packages
from distutils import sysconfig
import subprocess
import glob
import sys

srcs = [x for x in 
    glob.glob("libBigWig/*.c")]
srcs.append("pyBigWig.c")

if(sys.version_info[0] >= 3 and sys.version_info[1] >= 3) :
    libpython = "python%i.%im" % (sys.version_info[0], sys.version_info[1])
else :
    libpython = "python%i.%i" % (sys.version_info[0], sys.version_info[1])

#LIBRARY_PATH is often not set in Galaxy, though curl-config is in the PATH
additional_libs = [sysconfig.get_config_var("LIBDIR")]
foo, _ = subprocess.Popen(['curl-config', '--libs'], stdout=subprocess.PIPE).communicate()
foo = foo.strip().split()
for v in foo:
    if(v[0:2] == "-L") :
        additional_libs.append(v[2:])

#Galaxy will often link against the wrong libpython!!!!

module1 = Extension('pyBigWig',
                    sources = srcs,
                    libraries = ["m", "z", "curl", libpython],
                    library_dirs = additional_libs, 
                    include_dirs = ['libBigWig'])

setup(name = 'pyBigWig',
       version = '0.1.10',
       description = 'A package for accessing bigWig files using libBigWig',
       author = "<NAME>",
       author_email = "<EMAIL>",
       url = "https://github.com/dpryan79/pyBigWig",
       download_url = "https://github.com/dpryan79/pyBigWig/tarball/0.1.10",
       keywords = ["bioinformatics", "bigWig"],
       packages = find_packages(),
       include_package_data=True,
       ext_modules = [module1])<commit_msg>Bump version to 0.1.11<commit_after>#!/usr/bin/env python
from setuptools import setup, Extension, find_packages
from distutils import sysconfig
import subprocess
import glob
import sys

srcs = [x for x in 
    glob.glob("libBigWig/*.c")]
srcs.append("pyBigWig.c")

if(sys.version_info[0] >= 3 and sys.version_info[1] >= 3) :
    libpython = "python%i.%im" % (sys.version_info[0], sys.version_info[1])
else :
    libpython = "python%i.%i" % (sys.version_info[0], sys.version_info[1])

#LIBRARY_PATH is often not set in Galaxy, though curl-config is in the PATH
additional_libs = [sysconfig.get_config_var("LIBDIR")]
foo, _ = subprocess.Popen(['curl-config', '--libs'], stdout=subprocess.PIPE).communicate()
foo = foo.strip().split()
for v in foo:
    if(v[0:2] == "-L") :
        additional_libs.append(v[2:])

#Galaxy will often link against the wrong libpython!!!!

module1 = Extension('pyBigWig',
                    sources = srcs,
                    libraries = ["m", "z", "curl", libpython],
                    library_dirs = additional_libs, 
                    include_dirs = ['libBigWig'])

setup(name = 'pyBigWig',
       version = '0.1.11',
       description = 'A package for accessing bigWig files using libBigWig',
       author = "<NAME>",
       author_email = "<EMAIL>",
       url = "https://github.com/dpryan79/pyBigWig",
       download_url = "https://github.com/dpryan79/pyBigWig/tarball/0.1.11",
       keywords = ["bioinformatics", "bigWig"],
       packages = find_packages(),
       include_package_data=True,
       ext_modules = [module1])
{'fraction_non_alphanumeric': 0.14956855225311602, 'fraction_numerical': 0.01725790987535954, 'mean_word_length': 3.1733333333333333, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '2507125', 'n_tokens_mistral': 1093, 'n_tokens_neox': 1032, 'n_words': 236}