Skip to content

Commit

Permalink
We now use Python to generate ck and ck.bat scripts!
Browse files Browse the repository at this point in the history
If you install CK for different python versions,
you can use a specific one as follows: python3.7 -m ck version
  • Loading branch information
gfursin committed May 3, 2021
1 parent f6eb211 commit c5f0bc0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
7 changes: 6 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
* V2.0.0.1
* V2.0.1
* Updated deprecated function in web server to support Python 3.8+
* We now use Python to generate ck and ck.bat scripts!
If you install CK for different python versions,
you can use a specific one as follows:
python3.7 -m ck version


* V2.0.0
* We now use Apache 2.0 license based on the feedback from the majority of users
Expand Down
10 changes: 7 additions & 3 deletions ck/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


# We use 3 digits for the main (released) version and 4th digit for development revision
__version__ = "2.0.0.1"
__version__ = "2.0.1"
# Do not use characters (to detect outdated version)!

# Import packages that are global for the whole kernel
Expand Down Expand Up @@ -12223,12 +12223,16 @@ def access(i):


##############################################################################
if __name__ == "__main__":

def cli():
r = access(sys.argv[1:])

if 'return' not in r:
raise Exception(
'CK access function should always return key \'return\'!')

exit(int(r['return']))


##############################################################################
if __name__ == "__main__":
cli()
2 changes: 1 addition & 1 deletion ck/repo/module/mlperf.inference/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_raw_data(i):
def get_experimental_results_from_cache(cache_dir=None, cache_file=None):
if cache_dir is None:
# Check this module's directory.
cache_repo_uoa = 'ck-mlperf'
cache_repo_uoa = ''
cache_module_uoa = 'module'
cache_data_uoa = 'mlperf.inference'
r = ck.access({'action':'find',
Expand Down
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def run(self):

############################################################
# Describing CK setup
r = setup(
setup(
name='ck',
version=current_version,

Expand Down Expand Up @@ -417,13 +417,16 @@ def run(self):
'repo/test/unicode/.cm/*',
'repo/test/unicode/dir/*']},

scripts=["bin/ck", "bin/ck.bat"],

cmdclass={
'install': custom_install,
'install_scripts': custom_install_scripts
},

entry_points='''
[console_scripts]
ck=ck.kernel:cli
''',

classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit c5f0bc0

Please sign in to comment.