mirror of
https://github.com/pacnpal/simpleguardhome.git
synced 2025-12-19 20:11:14 -05:00
feat(docker): streamline Dockerfile by optimizing layer caching and enhancing installation verification
This commit is contained in:
22
setup.py
22
setup.py
@@ -1,3 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from setuptools import setup
|
||||
|
||||
setup()
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
setup(
|
||||
package_dir={"": "src"},
|
||||
packages=["simpleguardhome"],
|
||||
package_data={
|
||||
"simpleguardhome": [
|
||||
"templates/*",
|
||||
"favicon.ico"
|
||||
]
|
||||
},
|
||||
include_package_data=True
|
||||
)
|
||||
except: # noqa
|
||||
print(
|
||||
"\n\nAn error occurred while building the project, "
|
||||
"please ensure you have the most updated version of setuptools, "
|
||||
"setuptools_scm and wheel with:\n"
|
||||
" pip install -U setuptools setuptools_scm wheel\n\n"
|
||||
)
|
||||
Reference in New Issue
Block a user