text: #!/usr/bin/env python
  from setuptools import setup, find_packages
  import re
  import os
  
  # There is an issue with building python packages in a shared vagrant directory
  # because of how setuptools works in python < 2.7.9. We solve this by deleting
  # the filesystem hardlinking capability during build.
  # See: http://stackoverflow.com/a/22147112/381010
  del os.link
  
  long_description = (
      "Markdown linter written in python. Under active development."
      "Source code: https://github.com/jorisroovers/pymarkdownlint"
  )
  
  
  # shamelessly stolen from mkdocs' setup.py:
  # https://github.com/mkdocs/mkdocs/blob/master/setup.py
  def get_version(package):
      """Return package version as listed in `__version__` in `init.py`."""
      init_py = open(os.path.join(package, '__init__.py')).read()
      return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
  
  
  setup(
      name="pymarkdownlint",
      version=get_version("pymarkdownlint"),
      description="Markdown linter written in python. Under active development.",
      long_description=long_description,
      classifiers=[
          "Development Status :: 3 - Alpha",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          "Environment :: Console",
          "Intended Audience :: Developers",
          "License :: OSI Approved :: MIT License"
      ],
      install_requires=[
          'bs4==0.0.1',
          'click==7.1.2',
          'Markdown==3.3.4',
      ],
      keywords='markdown markdownlint pymarkdownlint',
      author='Cheuk Yin Ng',
      url='https://github.com/cheukyin699/pymarkdownlint',
      license='MIT',
      packages=find_packages(exclude=["examples"]),
      entry_points={
          "console_scripts": [
              "markdownlint = pymarkdownlint.cli:cli",
          ],
      },
  )
  