Spaces:
Sleeping
Sleeping
File size: 662 Bytes
f38a4b7 |
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 |
from setuptools import setup
from setuptools.command.install import install
import os
import shutil
import site
class PostInstallCommand(install):
def run(self):
install.run(self)
# Copy sitecustomize.py to site-packages
for site_dir in site.getsitepackages():
try:
dest = os.path.join(site_dir, 'sitecustomize.py')
shutil.copy('sitecustomize.py', dest)
print(f"✅ Installed sitecustomize.py to {dest}")
break
except:
continue
setup(
name='grdn-hf-fix',
version='0.0.1',
cmdclass={'install': PostInstallCommand},
)
|