summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorUladzimir Makouski <uladzimir.makouski@mongodb.com>2021-09-28 08:59:19 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-28 10:40:11 +0000
commit7b11c89595581a25619b7d45edd39ea8e4915810 (patch)
treed0835b7077160f951655146f1720ea3105a986b1 /SConstruct
parent378f22798d19eddb1db8e53a55c2a90c32d23ae3 (diff)
downloadmongo-7b11c89595581a25619b7d45edd39ea8e4915810.tar.gz
Revert "SERVER-59918 Create mongoqd binary"
This reverts commit c8fdce8af95e50b18d1cc821c37ec46adb24851a.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct31
1 files changed, 0 insertions, 31 deletions
diff --git a/SConstruct b/SConstruct
index 07dc5e427ab..2d80cba783d 100644
--- a/SConstruct
+++ b/SConstruct
@@ -5096,35 +5096,6 @@ if get_option('legacy-tarball') == 'true':
module_sconscripts = moduleconfig.get_module_sconscripts(mongo_modules)
-# This generates a numeric representation of the version string so that
-# you can easily compare versions of MongoDB without having to parse
-# the version string.
-#
-# Examples:
-# 5.1.1-123 => ['5', '1', '1', '123', None, None] => [5, 1, 2, -100]
-# 5.1.1-rc2 => ['5', '1', '1', 'rc2', 'rc', '2'] => [5, 1, 1, -23]
-# 5.1.1-rc2-123 => ['5', '1', '1', 'rc2-123', 'rc', '2'] => [5, 1, 1, -23]
-# 5.1.0-alpha-123 => ['5', '1', '0', 'alpha-123', 'alpha', ''] => [5, 1, 0, -50]
-# 5.1.0-alpha1-123 => ['5', '1', '0', 'alpha1-123', 'alpha', '1'] => [5, 1, 0, -49]
-# 5.1.1 => ['5', '1', '1', '', None, None] => [5, 1, 1, 0]
-
-version_parts = [ x for x in re.match(r'^(\d+)\.(\d+)\.(\d+)-?((?:(rc|alpha)(\d?))?.*)?',
- env['MONGO_VERSION']).groups() ]
-version_extra = version_parts[3] if version_parts[3] else ""
-if version_parts[4] == 'rc':
- version_parts[3] = int(version_parts[5]) + -25
-elif version_parts[4] == 'alpha':
- if version_parts[5] == '':
- version_parts[3] = -50
- else:
- version_parts[3] = int(version_parts[5]) + -50
-elif version_parts[3]:
- version_parts[2] = int(version_parts[2]) + 1
- version_parts[3] = -100
-else:
- version_parts[3] = 0
-version_parts = [ int(x) for x in version_parts[:4]]
-
# The following symbols are exported for use in subordinate SConscript files.
# Ideally, the SConscript files would be purely declarative. They would only
# import build environment objects, and would contain few or no conditional
@@ -5150,8 +5121,6 @@ Export([
'use_system_version_of_library',
'use_vendored_libunwind',
'usemozjs',
- 'version_extra',
- 'version_parts',
'wiredtiger',
])