import os
import glob
from numpy.distutils.core import setup, Extension

version = (os.popen('git config --get remote.origin.url').read() + ',' +
           os.popen('git describe --always --tags --dirty').read())

scripts = []

setup(name='matscipy',
      version=version,
      description='Generic Python Materials Science tools',
      maintainer='James Kermode & Lars Pastewka',
      maintainer_email='james.kermode@gmail.com',
      license='LGPLv2.1+',
      package_dir={'matscipy': 'matscipy'},
      packages=['matscipy'],
      scripts=scripts,
      ext_modules=[
        Extension(
            '_matscipy',
            [ 'c/matscipymodule.c' ],
            )
        ]
      )

import os
import glob
from numpy.distutils.core import setup, Extension

version = (os.popen('git config --get remote.origin.url').read() + ',' +
           os.popen('git describe --always --tags --dirty').read())

scripts = []

setup(name='matscipy',
      version=version,
      description='Generic Python Materials Science tools',
      maintainer='James Kermode & Lars Pastewka',
      maintainer_email='james.kermode@gmail.com',
      license='LGPLv2.1+',
      package_dir={'matscipy': 'matscipy'},
      packages=['matscipy', 'matscipy.fracture_mechanics'],
      scripts=scripts,
      ext_modules=[
        Extension(
            '_matscipy',
            [ 'c/matscipymodule.c' ],
            )
        ]
      )

Add matscipy.fracture_mechanics to packages list to install subpackage
Add matscipy.fracture_mechanics to packages list to install subpackage

  import os
  import glob
  from numpy.distutils.core import setup, Extension
  
  version = (os.popen('git config --get remote.origin.url').read() + ',' +
             os.popen('git describe --always --tags --dirty').read())
  
  scripts = []
  
  setup(name='matscipy',
        version=version,
        description='Generic Python Materials Science tools',
        maintainer='James Kermode & Lars Pastewka',
        maintainer_email='james.kermode@gmail.com',
        license='LGPLv2.1+',
        package_dir={'matscipy': 'matscipy'},
-       packages=['matscipy'],
+       packages=['matscipy', 'matscipy.fracture_mechanics'],
        scripts=scripts,
        ext_modules=[
          Extension(
              '_matscipy',
              [ 'c/matscipymodule.c' ],
              )
          ]
        )
  
Add matscipy.fracture_mechanics to packages list to install subpackage
## Code Before:
import os
import glob
from numpy.distutils.core import setup, Extension

version = (os.popen('git config --get remote.origin.url').read() + ',' +
           os.popen('git describe --always --tags --dirty').read())

scripts = []

setup(name='matscipy',
      version=version,
      description='Generic Python Materials Science tools',
      maintainer='James Kermode & Lars Pastewka',
      maintainer_email='james.kermode@gmail.com',
      license='LGPLv2.1+',
      package_dir={'matscipy': 'matscipy'},
      packages=['matscipy'],
      scripts=scripts,
      ext_modules=[
        Extension(
            '_matscipy',
            [ 'c/matscipymodule.c' ],
            )
        ]
      )

## Instruction:
Add matscipy.fracture_mechanics to packages list to install subpackage
## Code After:
import os
import glob
from numpy.distutils.core import setup, Extension

version = (os.popen('git config --get remote.origin.url').read() + ',' +
           os.popen('git describe --always --tags --dirty').read())

scripts = []

setup(name='matscipy',
      version=version,
      description='Generic Python Materials Science tools',
      maintainer='James Kermode & Lars Pastewka',
      maintainer_email='james.kermode@gmail.com',
      license='LGPLv2.1+',
      package_dir={'matscipy': 'matscipy'},
      packages=['matscipy', 'matscipy.fracture_mechanics'],
      scripts=scripts,
      ext_modules=[
        Extension(
            '_matscipy',
            [ 'c/matscipymodule.c' ],
            )
        ]
      )
