Improve installation instructions with non-deprecated messaging. 0.2.3 is now directly written as the server version.

This commit is contained in:
doctorpangloss 2024-10-14 15:54:21 -07:00
parent 23537df3e8
commit b0d606a282
3 changed files with 11 additions and 19 deletions

View File

@ -136,12 +136,15 @@ When using Windows, open the **Windows Powershell** app. Then observe you are at
pip install torchaudio==2.4.1+cu121 --index-url https://download.pytorch.org/whl/cu121
```
**Advanced**: If you are running in Google Collab or another environment which has already installed `torch` for you; or, if you are an application developer:
```shell
# You will need wheel, which isn't included in Python 3.11 or later
pip install wheel
pip install --no-build-isolation comfyui@git+https://github.com/hiddenswitch/ComfyUI.git
```
This will use your pre-installed torch.
```shell
# You will need wheel, which isn't included in Python 3.11 or later
pip install wheel
pip install --no-build-isolation comfyui@git+https://github.com/hiddenswitch/ComfyUI.git
```
This will use your pre-installed torch. This is also the appropriate dependency for packages, and is the one published to `pypi`. To automatically install with `torch` nightlies, use:
```shell
pip install comfyui[withtorchnightlies]@git+https://github.com/hiddenswitch/ComfyUI.git
```
4. Create the directories you can fill with checkpoints:
```shell
comfyui --create-directories

View File

@ -64,19 +64,7 @@ async def send_socket_catch_exception(function, message):
def get_comfyui_version():
comfyui_version = "unknown"
repo_path = os.path.dirname(os.path.realpath(__file__))
try:
import pygit2 # pylint: disable=import-error
repo = pygit2.Repository(repo_path)
comfyui_version = repo.describe(describe_strategy=pygit2.GIT_DESCRIBE_TAGS)
except Exception:
try:
import subprocess
comfyui_version = subprocess.check_output(["git", "describe", "--tags"], cwd=repo_path).decode('utf-8')
except Exception as e:
logging.warning(f"Failed to get ComfyUI version: {e}")
return comfyui_version.strip()
return "0.2.3"
@web.middleware

View File

@ -213,6 +213,7 @@ setup(
tests_require=dev_dependencies,
extras_require={
'withtorch': dependencies(install_torch_for_system=True),
'withtorchnightly': dependencies(install_torch_for_system=True, force_nightly=True),
'dev': dev_dependencies
},
)