Viewing a single comment thread. View all comments

CyberDainz t1_j3awj2p wrote

look at my project https://github.com/iperov/DeepFaceLive

I made a builder to create an all-in-one standalone folder for Windows that contains everything to run a python application containing cuda runtime. Release folder also contains portable VSCode that has already configured project to modify only folder's code. No conda, no docker and other redundant shit.

Builder located here https://github.com/iperov/DeepFaceLive/blob/master/build/windows/WindowsBuilder.py and can be expanded to suit your needs.

4

IndieAIResearcher t1_j3ax10h wrote

Why don't you create it as a standalone framework?

1

CyberDainz t1_j3ax5f5 wrote

what do you mean

1

IndieAIResearcher t1_j3axf09 wrote

Windows builder as pypi

1

CyberDainz t1_j3ayd88 wrote

Because each project has its own configuration.

If you make a framework out of this, you get a horror like Bazel. And you will spend time learning how to work with Bazel. But what for? Building a project is a simple operation: create folders, some files, download, unzip, call Popen with a certain env, clean up the __ pycache __ folder at the end, and archive it - that's it! The project is ready.

All you need to do is spend 20 minutes and figure out how WindowsBuilder.py works and adapt it to your project.

WindowsBuilder.py is standalone and requires only python 3.

5

Atom_101 OP t1_j3b20ok wrote

So you are manually setting up cuda and windows environment variables in that script? I'll see if I can get it to work like that. Thanks!

1