Skip to content

Commit

Permalink
agqewrf
Browse files Browse the repository at this point in the history
  • Loading branch information
Goekdeniz-Guelmez committed Jul 31, 2024
1 parent 3a6dfe2 commit 0f34971
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,20 @@
# Add the package directory to the Python path
package_dir = root_dir / "model"

# Read the requirements from the requirements.txt file
# First try to read from the root directory, if not found, try the package directory
# Read the requirements from the requirements.txt file in the root directory
requirements_file = root_dir / "requirements.txt"
if not requirements_file.exists():
requirements_file = package_dir / "requirements.txt"

if requirements_file.exists():
with open(requirements_file) as fid:
requirements = [l.strip() for l in fid.readlines()]
else:
print("\n\n\n\nWarning: requirements.txt not found. Proceeding without dependencies.\n\n\n\n")

requirements = []

# Import the version from the package
version = {}
with open(str(package_dir / "version.py")) as f:
exec(f.read(), version)


# Setup configuration
setup(
name="KANama",
Expand Down

0 comments on commit 0f34971

Please sign in to comment.