<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def current_version():
 """ Get the current version number from setup.py """

    # Monkeypatch setuptools.setup so we get the verison number
    import setuptools

    version = [None]

    def monkey_setup(**settings):
        version[0] = settings['version']

    old_setup = setuptools.setup
    setuptools.setup = monkey_setup

    import setup  # setup.py
    reload(setup)
    setuptools.setup = old_setup

    return version[0]