techartorg / bqt

A Blender add-on to support & manage Qt Widgets in Blender (PySide2)
https://github.com/techartorg/bqt/wiki
Mozilla Public License 2.0
162 stars 23 forks source link

pip install cleanup #61

Closed hannesdelbeke closed 1 year ago

hannesdelbeke commented 1 year ago

pip instal cleanup

original convo

Hannes BQT discussion IMO the current setup that auto adds files to your blender install is dirty. After installing bqt, your vanilla blender changed, and when uninstalling it doesn't clean up. e.g. when used in a studio pipeline, you might want your own startup file instead. and when not running bqt, there now is a leftover startup file from bqt that will run. Would this be a bad idea if we changed to this: pip install bqt adds a py-module, nothing else. keep vanilla blender clean. if the user needs/wants to add it to startup, they can run

import bqt
bqt.install_startup()

Frieder Erdmann yes, its also bad because it breaks if you install bqt to a virtual environment

Chris Cunningham ah that is pretty bad then, i tend to just assume a venv for python stuff

Dominic Noble Not requiring to add it to Blender's site-packages would be super useful, I've had to make some very specific workaround for a deployment tool I'm making just for BQT.

Bob White I think part of the issue when we first put it together was blender didn't make it super easy to ensure that binaries were installed on PATH in a way that the dlls would be found. From what I remember, most of those issues have been dealt with at this point, so its possible the current installation process is just a weird legacy quirk

Bob White Or it might have been a byproduct of me using pywin32 and it being weird as hell to install now that I think about it.

Greg Amato Definitely byproduct of pywin32

hannesdelbeke commented 1 year ago

believe this is solved now. pip install wont auto add to startup anymore. instead bqt can now be loaded as an addon. which handles startup. and prevents poluting of vanilla blender install folder

hannesdelbeke commented 1 year ago

noticed the setup.py still contains ref too dist/bqt_startup.py

hannesdelbeke commented 1 year ago

adding ref to blender pip. https://github.com/hannesdelbeke/blender_pip since we handle clean blender pip installs there

hannesdelbeke commented 1 year ago
hannesdelbeke commented 1 year ago

bqt demo has been removed from package