<commit_before>from setuptools import setup
from distutils.core import Extension
from distutils.command.build import build
import os
from subprocess import call
import multiprocessing

class build_nxppy(build):
    def run(self):

        startingDir = os.getcwd()

        os.chdir( os.path.join('NxpRdLib_PublicRelease', 'build') )

        def compile():
            call( 'cmake .', shell=True )
            call( 'make', shell=True )

        self.execute(compile, [], 'compiling NxpRdLib')

        os.chdir( startingDir )

        # Run the rest of the build
        build.run(self)

nxppy = Extension('nxppy',
                    sources = ['Mifare.c', 'nxppy.c'],
                    include_dirs = ['NxpRdLib_PublicRelease/types', 'NxpRdLib_PublicRelease/intfs', 'NxpRdLib_PublicRelease/comps/phpalSli15693/src/Sw'],
                    extra_compile_args=['-O1'],
                    extra_link_args=['NxpRdLib_PublicRelease/build/libnxprd.a']
)

setup (name = 'nxppy',
       version = '1.0',
       description = 'A python extension for interfacing with the NXP PN512 NFC Reader. Targeted specifically for Raspberry Pi and the EXPLORE-NFC module',
       test_suite = 'nose.collector',
       setup_requires=['nose>=1.0'],
       ext_modules = [nxppy],
       cmdclass = {'build': build_nxppy})<commit_msg>Add pypi information to setup.py.<commit_after>from setuptools import setup
from distutils.core import Extension
from distutils.command.build import build
import os
from subprocess import call
import multiprocessing

class build_nxppy(build):
    def run(self):

        startingDir = os.getcwd()

        os.chdir( os.path.join('NxpRdLib_PublicRelease', 'build') )

        def compile():
            call( 'cmake .', shell=True )
            call( 'make', shell=True )

        self.execute(compile, [], 'compiling NxpRdLib')

        os.chdir( startingDir )

        # Run the rest of the build
        build.run(self)

nxppy = Extension('nxppy',
                    sources = ['Mifare.c', 'nxppy.c'],
                    include_dirs = ['NxpRdLib_PublicRelease/types', 'NxpRdLib_PublicRelease/intfs', 'NxpRdLib_PublicRelease/comps/phpalSli15693/src/Sw'],
                    extra_compile_args=['-O1'],
                    extra_link_args=['NxpRdLib_PublicRelease/build/libnxprd.a']
)

try:
    import pypandoc
    description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
    description = open('README.md').read()

setup (name = 'nxppy',
       version = '1.0',
       description = 'A python extension for interfacing with the NXP PN512 NFC Reader. Targeted specifically for Raspberry Pi and the EXPLORE-NFC module',
       long_description = description,
       author = '<NAME>',
       author_email = '<EMAIL>',
       url = 'http://github.com/svvitale/nxppy',
       test_suite = 'nose.collector',
       setup_requires=['nose>=1.0'],
       ext_modules = [nxppy],
       cmdclass = {'build': build_nxppy})
{'fraction_non_alphanumeric': 0.11891891891891893, 'fraction_numerical': 0.008783783783783784, 'mean_word_length': 2.748101265822785, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1704209', 'n_tokens_mistral': 979, 'n_tokens_neox': 912, 'n_words': 210}