13200: Fix python versioning for arvados-python-client and arvados-cwl-runner
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Wed, 4 Apr 2018 20:05:31 +0000 (16:05 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Wed, 4 Apr 2018 20:05:31 +0000 (16:05 -0400)
commit196cb2e84834de79f25414de09a8d00bbe1a5eae
tree495f98d621fafd657f916c131e7a6f1e4fd15b14
parent396cb080346a46a94508b2938ef6d916f4d1778f
13200: Fix python versioning for arvados-python-client and arvados-cwl-runner

New behavior:

1) If ARVADOS_BUILDING_VERSION is set, write that to _version.py

2) Else, try to import arvados_version, get version based on git
  tags+timestamp and write that to _version.py.  arvados_version.py is
  present in the source tree but not included in the package, so if we
  get ImportError, do nothing.

If neither (1) or (2) succeeds, take that to mean we're installing a
source package.  Leave _version.py alone.

Read the version back from _version.py and use that.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>
.gitignore
sdk/cwl/arvados_cwl/_version.py [deleted file]
sdk/cwl/setup.py
sdk/python/arvados/_version.py [deleted file]
sdk/python/setup.py