I am setting up a continuous delivery system for a python project, and I am trying to figure out how to set the ENTIRE version string of the project build via egg\_info. 

I am using thoughtworks GO which has a built in version tracking label called GO\_PIPELINE\_LABEL. I would like to invoke the setup\_tools egg building command with this version as an argument completely overriding the version in setup.py.

eg:

```
GO_PIPELINE_LABEL='1.2.3.4' python setup.py egg_info --tag-build=$GO_PIPELINE_LABEL bdist_egg

```

seems to result in 

```
'dist/myproject-0.0.01.2.3.4-py2.7.egg' 

```

It always seems to concat the setup.py version and the command line one. My setup.py looks like this:

```
import os
from setuptools import setup, find_packages
from setuptools.command.install import install

ROOT_DIR = os.path.dirname(__file__)
SOURCE_DIR = os.path.join(ROOT_DIR)

# python setup.py egg_info -rb14 bdist_egg rotate -m.egg -k5
# python setup.py egg_info --tag-build=1.2.3.4 bdist_egg

version = ''

setup(name='myproject',
    version=version,
    description='baa',
    author='Me',
    author_email='irrelevant@domain.com',
    packages=['submodule', 'another.submodule'],
    package_data = {
                       '': ['*.xsd'],
                       },
    install_requires=['cmd2',
                    'dnspython',
                    'ordereddict',
                    'prettyprint',
                    'pycontrol',
                    'simplejson',
                    'suds',
                    'pyparsing<2.0.0',
                    'urllib3',
                    'lxml',
                    ]
    )

```

I have tried nulling / removing the version variable in my setup.py, but whatever I do seems to result in a concatenation of the version values, and a null seems to equate to '0.0.0'. Anyone know how I can utilize setup\_tools and set my version string?

Thanks,
K