comparison env/bin/doesitcache @ 0:4f3585e2f14b draft default tip

"planemo upload commit 60cee0fc7c0cda8592644e1aad72851dec82c959"
author shellac
date Mon, 22 Mar 2021 18:12:50 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4f3585e2f14b
1 #!/Users/cmdms/OneDrive-UOB/Development/Projects/2021/sam-consensus-v3/env/bin/python3
2 # EASY-INSTALL-ENTRY-SCRIPT: 'CacheControl==0.11.7','console_scripts','doesitcache'
3 import re
4 import sys
5
6 # for compatibility with easy_install; see #2198
7 __requires__ = 'CacheControl==0.11.7'
8
9 try:
10 from importlib.metadata import distribution
11 except ImportError:
12 try:
13 from importlib_metadata import distribution
14 except ImportError:
15 from pkg_resources import load_entry_point
16
17
18 def importlib_load_entry_point(spec, group, name):
19 dist_name, _, _ = spec.partition('==')
20 matches = (
21 entry_point
22 for entry_point in distribution(dist_name).entry_points
23 if entry_point.group == group and entry_point.name == name
24 )
25 return next(matches).load()
26
27
28 globals().setdefault('load_entry_point', importlib_load_entry_point)
29
30
31 if __name__ == '__main__':
32 sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
33 sys.exit(load_entry_point('CacheControl==0.11.7', 'console_scripts', 'doesitcache')())