ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 4581ac9 was
9a182b2,
checked in by ajj, 8 years ago
|
Updating version numbers for 4.0 release and making some release notes
|
-
Property mode set to
100644
|
File size:
615 bytes
|
Rev | Line | |
---|
[9a182b2] | 1 | __version__ = "4.0" |
---|
[8ca1ba1] | 2 | __build__ = "GIT_COMMIT" |
---|
| 3 | try: |
---|
[a3f1c11e] | 4 | import logging |
---|
[8ca1ba1] | 5 | import subprocess |
---|
[801a296] | 6 | import os |
---|
[54756fc] | 7 | import platform |
---|
[801a296] | 8 | FNULL = open(os.devnull, 'w') |
---|
[54756fc] | 9 | if platform.system() == "Windows": |
---|
| 10 | args = ['git', 'describe', '--tags'] |
---|
| 11 | else: |
---|
| 12 | args = ['git describe --tags'] |
---|
| 13 | git_revision = subprocess.check_output(args, |
---|
[801a296] | 14 | stderr=FNULL, |
---|
| 15 | shell=True) |
---|
[8ca1ba1] | 16 | __build__ = str(git_revision).strip() |
---|
[a3f1c11e] | 17 | except subprocess.CalledProcessError as cpe: |
---|
| 18 | logging.warning("Error while determining build number\n Using command:\n %s \n Output:\n %s"% (cpe.cmd,cpe.output)) |
---|
Note: See
TracBrowser
for help on using the repository browser.