from distutils.core import setup, Extension

setup (
    name='PPeg',
    version='0.9',
    description="A Python port of Lua's LPeg pattern matching library",
    url='https://bitbucket.org/pmoore/ppeg',

    author='Paul Moore',

    license='MIT',

    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2 :: Only',
        'Topic :: Text Processing :: General',
    ],

    keywords='parsing peg grammar regex',

    ext_modules = [Extension('_ppeg', ['_ppeg.c']),
                   Extension('_cpeg', ['_cpeg.c'])],
    py_modules=[
        'PythonImpl',
        'pegmatcher',
    ],
)


from distutils.core import setup, Extension

setup (
    name='PPeg',
    version='0.9',
    description="A Python port of Lua's LPeg pattern matching library",
    url='https://bitbucket.org/pmoore/ppeg',

    author='Paul Moore',

    license='MIT',

    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2 :: Only',
        'Topic :: Text Processing :: General',
    ],

    keywords='parsing peg grammar regex',

    ext_modules = [Extension('_ppeg', ['_ppeg.c', 'lpeg.c']),
                   Extension('_cpeg', ['_cpeg.c'])],
    py_modules=[
        'PythonImpl',
        'pegmatcher',
    ],
)


Add lpeg.c to _ppeg.c dependencies
Add lpeg.c to _ppeg.c dependencies

  from distutils.core import setup, Extension
  
  setup (
      name='PPeg',
      version='0.9',
      description="A Python port of Lua's LPeg pattern matching library",
      url='https://bitbucket.org/pmoore/ppeg',
  
      author='Paul Moore',
  
      license='MIT',
  
      classifiers=[
          'Development Status :: 3 - Alpha',
          'Intended Audience :: Developers',
          'License :: OSI Approved :: MIT License',
          'Programming Language :: Python :: 2 :: Only',
          'Topic :: Text Processing :: General',
      ],
  
      keywords='parsing peg grammar regex',
  
-     ext_modules = [Extension('_ppeg', ['_ppeg.c']),
+     ext_modules = [Extension('_ppeg', ['_ppeg.c', 'lpeg.c']),
                     Extension('_cpeg', ['_cpeg.c'])],
      py_modules=[
          'PythonImpl',
          'pegmatcher',
      ],
  )
  
  
Add lpeg.c to _ppeg.c dependencies
## Code Before:
from distutils.core import setup, Extension

setup (
    name='PPeg',
    version='0.9',
    description="A Python port of Lua's LPeg pattern matching library",
    url='https://bitbucket.org/pmoore/ppeg',

    author='Paul Moore',

    license='MIT',

    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2 :: Only',
        'Topic :: Text Processing :: General',
    ],

    keywords='parsing peg grammar regex',

    ext_modules = [Extension('_ppeg', ['_ppeg.c']),
                   Extension('_cpeg', ['_cpeg.c'])],
    py_modules=[
        'PythonImpl',
        'pegmatcher',
    ],
)


## Instruction:
Add lpeg.c to _ppeg.c dependencies
## Code After:
from distutils.core import setup, Extension

setup (
    name='PPeg',
    version='0.9',
    description="A Python port of Lua's LPeg pattern matching library",
    url='https://bitbucket.org/pmoore/ppeg',

    author='Paul Moore',

    license='MIT',

    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2 :: Only',
        'Topic :: Text Processing :: General',
    ],

    keywords='parsing peg grammar regex',

    ext_modules = [Extension('_ppeg', ['_ppeg.c', 'lpeg.c']),
                   Extension('_cpeg', ['_cpeg.c'])],
    py_modules=[
        'PythonImpl',
        'pegmatcher',
    ],
)

