summaryrefslogtreecommitdiffstats
path: root/test/CC/CCVERSION-fixture/versioned.py
blob: d6c7ae8bb8624ea393761faca2a4d011905274b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import os
import sys
if '-dumpversion' in sys.argv:
    print('3.9.9')
    sys.exit(0)
if '--version' in sys.argv:
    print('this is version 2.9.9 wrapping', sys.argv[2])
    sys.exit(0)
if sys.argv[1] not in [ '2.9.9', '3.9.9' ]:
    print('wrong version', sys.argv[1], 'when wrapping', sys.argv[2])
    sys.exit(1)
os.system(" ".join(sys.argv[2:]))