Skip to content

Commit

Permalink
Fetch LFS properly on pip installation
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-bushuiev committed Jul 19, 2024
1 parent 02b16ef commit b072c8e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
import os
from setuptools import setup, find_packages
from setuptools.command.install import install as _install


class install(_install):
def run(self):
self._fetch_lfs_objects()
_install.run(self)

def _fetch_lfs_objects(self):
os.system("git lfs pull")


with open('requirements.txt') as f:
required = f.read().splitlines()


setup(
name='ppiref',
author='Anton Bushuiev',
version='1.0',
version='1.2.0',
packages=find_packages(),
install_requires=required,
include_package_data=True,
install_requires=required
cmdclass={
'install': install,
}
)

0 comments on commit b072c8e

Please sign in to comment.