Skip to content

[DRAFT] Installer python rewrite#2292

Closed
ebr wants to merge 18 commits into
mainfrom
dev/installer
Closed

[DRAFT] Installer python rewrite#2292
ebr wants to merge 18 commits into
mainfrom
dev/installer

Conversation

@ebr

@ebr ebr commented Jan 10, 2023

Copy link
Copy Markdown
Contributor

WIP PR for the new pure python installer + robust path handling module. PR only to help diff the changes against dev/diffusers.

Not yet ready for primetime, but a very narrow and fragile "happy path" can be tested on Linux with python3 installer/main.py --root ....

This works and produces a usable install, but more work is needed for smooth cross-platform functionality. I will add more detail to this description, or in a future PR.

@ebr ebr requested a review from tildebyte as a code owner January 10, 2023 17:00
@ebr ebr requested review from keturn and lstein January 10, 2023 17:01
@ebr ebr changed the title Installer python rewrite [DRAFT] Installer python rewrite Jan 10, 2023
@ebr ebr marked this pull request as draft January 10, 2023 17:01
@ebr ebr force-pushed the dev/installer branch 3 times, most recently from dfa4b77 to ee04852 Compare January 13, 2023 09:32
Base automatically changed from dev/diffusers to main January 15, 2023 14:22
ebr added 4 commits January 16, 2023 00:42
This allows reliable distribution of the initial 'configs' directory
with the Python package, and enables the configuration script to be running
from anywhere, as long as the virtual environment is available on the sys.path
the 'setup.py install' method is deprecated in favour of a
build-system independent format: https://peps.python.org/pep-0517/

this is needed to install dependencies that don't have a pyproject.toml
file (only setup.py) in a forward-compatible way
if the config directory is missing, initialize it using the standard
process of copying it over, instead of failing to create the config file

this can happen if the user is re-running the config script in a directory which
already has the init file, but no configs dir
ebr added 2 commits January 16, 2023 01:52
…h experience on Linux/Mac

- install.sh is now a thin wrapper around the pythonized install script
- install.bat not done yet - to follow
- user messaging is tailored to the current platform (paste shortcuts, file paths, etc)
- emit invoke.sh/invoke.bat scripts to the runtime dir
- improve launch scripts (add help option, etc)
- only emit the platform-specific scripts
@ebr ebr closed this Jan 16, 2023
@ebr

ebr commented Jan 16, 2023

Copy link
Copy Markdown
Contributor Author

superceded by #2338

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant