kcml commited on
Commit
942e3e4
·
1 Parent(s): ee298c3

add numba wheel locally

Browse files
packages/numba/llvmlite-0.33.0-cp38-cp38-manylinux1_x86_64.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89b9458b1e1c9b3adb48695ba1bf266dffc7cb381265839113eda5a6102e731d
3
+ size 18303487
packages/numba/numba-0.50.1-cp38-cp38-manylinux1_x86_64.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44407fd45655d887b3bb12b9282c0d994c2e7d59ba537e7429349403de6eb8c0
3
+ size 2598398
packages/numba/numpy-1.21.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dde972a1e11bb7b702ed0e447953e7617723760f420decb97305e66fb4afc54f
3
+ size 14092363
packages/numba/setuptools-70.0.0-py3-none-any.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54faa7f2e8d2d11bcd2c07bed282eef1046b5c080d1c32add737d7b5817b1ad4
3
+ size 863432
script.py CHANGED
@@ -104,8 +104,23 @@ def convert_entry_to_human_readable(entry):
104
 
105
  ### The function below is useful for installing additional python wheels.
106
  import subprocess
107
-
108
- subprocess.check_call([subprocess.sys.executable, "-m", "pip", "install", 'numba'])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
  from pathlib import Path
111
  def save_submission(submission, path):
 
104
 
105
  ### The function below is useful for installing additional python wheels.
106
  import subprocess
107
+ def my_install_package_from_local_file(package_name, folder='packages'):
108
+ """
109
+ Installs a package from a local .whl file or a directory containing .whl files using pip.
110
+ Parameters:
111
+ path_to_file_or_directory (str): The path to the .whl file or the directory containing .whl files.
112
+ """
113
+ try:
114
+ pth = str(Path(folder) / package_name)
115
+ subprocess.check_call([subprocess.sys.executable, "-m", "pip", "install",
116
+ "--no-index", # Do not use package index
117
+ "--find-links", pth, # Look for packages in the specified directory or at the file
118
+ package_name]) # Specify the package to install
119
+ print(f"Package installed successfully from {pth}")
120
+ except subprocess.CalledProcessError as e:
121
+ print(f"Failed to install package from {pth}. Error: {e}")
122
+
123
+ my_install_package_from_local_file('numba')
124
 
125
  from pathlib import Path
126
  def save_submission(submission, path):