code: def run_setup(with_compilation):
      cmdclass = dict(test=TestCommand)
      if with_compilation:
          kw = dict(
              ext_modules=[maxflow],
              cmdclass=dict(cmdclass, build_ext=ve_build_ext),
          )
          ap = ["medpy.graphcut"]
      else:
          kw = dict(cmdclass=cmdclass)
          ap = []
  
      setup(
          name="MedPy",
          version="0.4.0",  # major.minor.micro
          description="Medical image processing in Python",
          author="Oskar Maier",
          author_email="oskar.maier@gmail.com",
          url="https://github.com/loli/medpy",
          license="LICENSE.txt",
          keywords="medical image processing dicom itk insight tool kit MRI CT US graph cut max-flow min-cut",
          long_description=read("README_PYPI.md"),
          long_description_content_type="text/markdown",
          classifiers=[
              "Development Status :: 5 - Production/Stable",
              "Environment :: Console",
              "Environment :: Other Environment",
              "Intended Audience :: End Users/Desktop",
              "Intended Audience :: Developers",
              "Intended Audience :: Healthcare Industry",
              "Intended Audience :: Science/Research",
              "License :: OSI Approved :: GNU General Public License (GPL)",
              "Operating System :: MacOS :: MacOS X",
              "Operating System :: Microsoft :: Windows",
              "Operating System :: POSIX",
              "Operating System :: Unix",
              "Programming Language :: Python :: 3.5",
              "Programming Language :: Python :: 3.6",
              "Programming Language :: C++",
              "Topic :: Scientific/Engineering :: Medical Science Apps.",
              "Topic :: Scientific/Engineering :: Image Recognition",
          ],
          install_requires=[
              "scipy >= 1.1.0",
              "numpy >= 1.11.0",
              "SimpleITK >= 1.1.0",
          ],
          packages=PACKAGES + ap,
          scripts=[
              "bin/medpy_anisotropic_diffusion.py",
              "bin/medpy_apparent_diffusion_coefficient.py",
              "bin/medpy_binary_resampling.py",
              "bin/medpy_convert.py",
              "bin/medpy_create_empty_volume_by_example.py",
              "bin/medpy_dicom_slices_to_volume.py",
              "bin/medpy_dicom_to_4D.py",
              "bin/medpy_diff.py",
              "bin/medpy_extract_contour.py",
              "bin/medpy_extract_min_max.py",
              "bin/medpy_extract_sub_volume_auto.py",
              "bin/medpy_extract_sub_volume_by_example.py",
              "bin/medpy_extract_sub_volume.py",
              "bin/medpy_fit_into_shape.py",
              "bin/medpy_gradient.py",
              "bin/medpy_graphcut_label_bgreduced.py",
              "bin/medpy_graphcut_label_w_regional.py",
              "bin/medpy_graphcut_label_wsplit.py",
              "bin/medpy_graphcut_label.py",
              "bin/medpy_graphcut_voxel.py",
              "bin/medpy_grid.py",
              "bin/medpy_info.py",
              "bin/medpy_intensity_range_standardization.py",
              "bin/medpy_intersection.py",
              "bin/medpy_join_masks.py",
              "bin/medpy_join_xd_to_xplus1d.py",
              "bin/medpy_label_count.py",
              "bin/medpy_label_fit_to_mask.py",
              "bin/medpy_label_superimposition.py",
              "bin/medpy_merge.py",
              "bin/medpy_morphology.py",
              "bin/medpy_resample.py",
              "bin/medpy_reslice_3d_to_4d.py",
              "bin/medpy_set_pixel_spacing.py",
              "bin/medpy_shrink_image.py",
              "bin/medpy_split_xd_to_xminus1d.py",
              "bin/medpy_stack_sub_volumes.py",
              "bin/medpy_swap_dimensions.py",
              "bin/medpy_watershed.py",
              "bin/medpy_zoom_image.py",
          ],
          **kw,
      )
  
file_path: medpy/setup.py
imports: import os
  import sys
  from ctypes.util import find_library
  from distutils.command.build_ext import build_ext
  from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError
  from setuptools import setup, Extension, Command
label_desc: Use image node_id 2 for calling a global function with example usage: run_setup(with_compilation) without return types