Spaces:
Running
on
Zero
Running
on
Zero
keshavbhandari
commited on
Commit
β’
770f94f
1
Parent(s):
8a2ba1c
test 2
Browse files- Dockerfile β Dockerfile_archived.txt +0 -0
- setup.txt +10 -1
Dockerfile β Dockerfile_archived.txt
RENAMED
File without changes
|
setup.txt
CHANGED
@@ -4,4 +4,13 @@ install_requires = []
|
|
4 |
if os.path.isfile(requirement_path):
|
5 |
with open(requirement_path) as f:
|
6 |
install_requires = f.read().splitlines()
|
7 |
-
setup(name="mypackage", install_requires=install_requires, [...])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
if os.path.isfile(requirement_path):
|
5 |
with open(requirement_path) as f:
|
6 |
install_requires = f.read().splitlines()
|
7 |
+
setup(name="mypackage", install_requires=install_requires, [...])
|
8 |
+
|
9 |
+
import subprocess
|
10 |
+
|
11 |
+
# Run the apt-get command
|
12 |
+
try:
|
13 |
+
subprocess.run(["apt-get", "install", "-y", "fluidsynth"], check=True)
|
14 |
+
print("FluidSynth installed successfully")
|
15 |
+
except subprocess.CalledProcessError as e:
|
16 |
+
print(f"An error occurred while installing FluidSynth: {e}")
|