fix setup.py so pip install does not fail #3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "eschmidbauer:fix-pip-install"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
desu you're not supposed to install DLAS as a pip package, even if setup.py "allows" you to, there's fundamental issues (from off the top of my head a month ago):
codes
being named that instead of something likedl-art-school
, or whatever draconian assumptions setuptool does, makes nothing actually get copied over because setup assumessetup.py
to actually copy thecodes
folder is a chore, as a lot of folders are missing__init_.py
scodes
is the root directory, rather than referincing it as a module (like tortoise does, sanely) making it a pain to even use it as a PIP module.If you're insistent on using DLAS outside of either mrq/ai-voice-cloning or directly invoking it, consider my disgusting hotfix. PIP-ifying DLAS isn't worth the trouble when I can just clone it as a submodule and sloppily inject that way.
You could get away with an
__init__.py
in the root ofcodes
(ordlas
, whatever it's renamed to) to do the sys.path injection with something like a os.path.dirname(file) or something.@mrq thanks for the feedback. will come up with other solutions.
Some suggestions, since I forgot past-me left some hints in previous commits:
setup.py
(namely, the last two).sys.path.append(os.path.dirname(__file__))
in./DL-Art-School/codes/__init__.py
, I did have some comments in mytraining.py
__init__.py
in it so setuptools registers every directory../DL-Art-School/codes/
to./venv/lib/python3.x/site-packages/
(or.\venv\Lib\site-packages\
on Windows) asdlas
, it'll make debugging the later a lot helpful.dlas
as a global package instead.im thinking it makes sense to break this code out into a dlas python package https://git.ecker.tech/eschmidbauer/dlas
I was able to train using the
dlas
python package inai-voice-cloning
with the following diffpip install git+https://git.ecker.tech/eschmidbauer/dlas.git
...
That's it? Wild. I'll see about replicating it when I get a moment.
Implemented in commit
a4afad8837
.DLAS is still included as a submodule in mrq/ai-voice-cloning as it's easier for it to update if I push any commits to it, rather than having it re-clone everytime per update script call.
Pull request closed