dmytromishkin commited on
Commit
45cb4dd
·
1 Parent(s): 2b3faac

pyproject.toml

Browse files
Files changed (2) hide show
  1. pyproject.toml +3 -0
  2. setup.py +23 -3
pyproject.toml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [build-system]
2
+ requires = ["setuptools>=42", "wheel"]
3
+ build-backend = "setuptools.build_meta"
setup.py CHANGED
@@ -1,9 +1,29 @@
1
  from setuptools import setup, find_packages
2
  import glob
 
3
 
4
-
5
- with open('requirements.txt') as f:
6
- required = f.read().splitlines()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  setup(name='hoho2025',
9
  version='0.1.0',
 
1
  from setuptools import setup, find_packages
2
  import glob
3
+ import os
4
 
5
+ # Try to read from requirements.txt, but have fallback
6
+ try:
7
+ here = os.path.abspath(os.path.dirname(__file__))
8
+ with open(os.path.join(here, 'requirements.txt')) as f:
9
+ required = f.read().splitlines()
10
+ except FileNotFoundError:
11
+ # Fallback to hardcoded dependencies
12
+ required = [
13
+ 'datasets',
14
+ 'huggingface-hub',
15
+ 'ipywidgets',
16
+ 'matplotlib',
17
+ 'numpy',
18
+ 'opencv-python',
19
+ 'Pillow',
20
+ 'plotly',
21
+ 'pycolmap',
22
+ 'scipy',
23
+ 'torch',
24
+ 'trimesh',
25
+ 'webdataset==0.2.111',
26
+ ]
27
 
28
  setup(name='hoho2025',
29
  version='0.1.0',