jacklangerman commited on
Commit
53332d7
1 Parent(s): fd89e73

assume hoho exists

Browse files
Files changed (2) hide show
  1. packages/hoho-0.0.1.zip +0 -3
  2. script.py +21 -0
packages/hoho-0.0.1.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:cb8fdadb7157343716e7b4d49358faadc441d1b46a31fdd9e2d89ef28ba75242
3
- size 54067
 
 
 
 
script.py CHANGED
@@ -10,6 +10,27 @@
10
  ### You can use any additional files and subdirectories to organize your code.
11
 
12
  '''---compulsory---'''
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  import hoho; hoho.setup() # YOU MUST CALL hoho.setup() BEFORE ANYTHING ELSE
14
  # import subprocess
15
  # import importlib
 
10
  ### You can use any additional files and subdirectories to organize your code.
11
 
12
  '''---compulsory---'''
13
+ # import subprocess
14
+ # from pathlib import Path
15
+ # def install_package_from_local_file(package_name, folder='packages'):
16
+ # """
17
+ # Installs a package from a local .whl file or a directory containing .whl files using pip.
18
+
19
+ # Parameters:
20
+ # path_to_file_or_directory (str): The path to the .whl file or the directory containing .whl files.
21
+ # """
22
+ # try:
23
+ # pth = str(Path(folder) / package_name)
24
+ # subprocess.check_call([subprocess.sys.executable, "-m", "pip", "install",
25
+ # "--no-index", # Do not use package index
26
+ # "--find-links", pth, # Look for packages in the specified directory or at the file
27
+ # package_name]) # Specify the package to install
28
+ # print(f"Package installed successfully from {pth}")
29
+ # except subprocess.CalledProcessError as e:
30
+ # print(f"Failed to install package from {pth}. Error: {e}")
31
+
32
+ # install_package_from_local_file('hoho')
33
+
34
  import hoho; hoho.setup() # YOU MUST CALL hoho.setup() BEFORE ANYTHING ELSE
35
  # import subprocess
36
  # import importlib