File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
packages/googleapis-common-protos Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1717
1818import setuptools
1919
20+ # Disable version normalization performed by setuptools.setup()
21+ try :
22+ # Try the approach of using sic(), added in setuptools 46.1.0
23+ from setuptools import sic
24+ except ImportError :
25+ # Try the approach of replacing packaging.version.Version
26+ sic = lambda v : v
27+ try :
28+ # setuptools >=39.0.0 uses packaging from setuptools.extern
29+ from setuptools .extern import packaging
30+ except ImportError :
31+ # setuptools <39.0.0 uses packaging from pkg_resources.extern
32+ from pkg_resources .extern import packaging
33+ packaging .version .Version = packaging .version .LegacyVersion
2034
2135name = "googleapis-common-protos"
2236description = "Common protobufs used in Google APIs"
4054
4155setuptools .setup (
4256 name = name ,
43- version = version ,
57+ version = sic ( version ) ,
4458 author = "Google LLC" ,
45594660 classifiers = [
You can’t perform that action at this time.
0 commit comments