mirror of
https://github.com/Ahrimdon/detailed-cod-tracker.git
synced 2025-01-30 22:15:00 -05:00
fix(setup.py): deprecated package error
This commit is contained in:
parent
fbfa8df406
commit
7bbb86a565
6
setup.py
6
setup.py
@ -21,6 +21,9 @@ def setup_api():
|
||||
wheel_path = os.path.join('deps', 'cod_api-2.0.2-py3-none-any.whl')
|
||||
subprocess.check_call([os.path.join('venv', 'Scripts', 'pip'), 'install', '--no-index', '--find-links=deps', wheel_path])
|
||||
|
||||
def remove_deprecated_packages():
|
||||
subprocess.check_call([os.path.join('venv', 'Scripts', 'pip'), 'uninstall', 'enum34', '-y'])
|
||||
|
||||
if __name__ == "__main__":
|
||||
if not deps_exists():
|
||||
print("Error: 'deps' directory does not exist!")
|
||||
@ -31,4 +34,5 @@ if __name__ == "__main__":
|
||||
print("Setting up virtual environment...")
|
||||
setup_tools()
|
||||
setup_api()
|
||||
print("Setup complete.")
|
||||
remove_deprecated_packages()
|
||||
print("Setup completed successfully.")
|
||||
|
Loading…
Reference in New Issue
Block a user