old_contents: 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})
  
new_contents: 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 = 'Scott Vitale',
         author_email = 'svvitale@gmail.com',
         url = 'http://github.com/svvitale/nxppy',
         test_suite = 'nose.collector',
         setup_requires=['nose>=1.0'],
         ext_modules = [nxppy],
         cmdclass = {'build': build_nxppy})
  
subject: Add pypi information to setup.py.