-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
awaiting responsewe are waiting for your reply, please respond! :)we are waiting for your reply, please respond! :)questionI have a question?I have a question?
Description
We want to use dvc commands right from our software.
As i see dvc dont have stable api for this.
what way u suggest?
i find this and here they use it like
from setuptools import setup
from setuptools.command.build_py import build_py
from dvc.main import main
class FetchError(Exception):
pass
class AssetFetcher(build_py):
def run(self):
print('Start pulling dvc asset')
ret = main(['pull', 'train.dvc'])
if ret != 0:
msg = 'DVC returned error code {} while pulling assets'
raise FetchError(msg.format(ret))
print('Asset pulled successfully !')
build_py.run(self)
setup(
name='vat_detection',
# and many other arguments ...
cmdclass={'build_py': AssetFetcher}
)Is this way ok or it can breaks on new versions?
shcheklein and dmpetrov
Metadata
Metadata
Assignees
Labels
awaiting responsewe are waiting for your reply, please respond! :)we are waiting for your reply, please respond! :)questionI have a question?I have a question?