-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (24 loc) · 890 Bytes
/
setup.py
File metadata and controls
27 lines (24 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
import subprocess
import sys
from setuptools import setup
# Create the static directory if it doesn't exist
os.makedirs('src/talkpipe/app/static', exist_ok=True)
# Run the documentation generator
try:
subprocess.run([
sys.executable,
'src/talkpipe/app/chatterlang_reference_generator.py',
'src',
'src/talkpipe/app/static/unit-docs.html',
'src/talkpipe/app/static/unit-docs.txt'
], check=True)
print("Documentation generated successfully")
except Exception as e:
print(f"Warning: Documentation generation failed: {e}")
# Create empty files to prevent packaging errors
for filename in ['src/talkpipe/app/static/unit-docs.html', 'src/talkpipe/app/static/unit-docs.txt']:
with open(filename, 'w') as f:
f.write(f"Documentation generation failed: {e}")
# Let setuptools_scm handle the rest
setup()