Skip to content

Better editable install#2935

Merged
j9ac9k merged 2 commits intopyqtgraph:masterfrom
j9ac9k:better-editable-install
Feb 14, 2024
Merged

Better editable install#2935
j9ac9k merged 2 commits intopyqtgraph:masterfrom
j9ac9k:better-editable-install

Conversation

@j9ac9k
Copy link
Copy Markdown
Member

@j9ac9k j9ac9k commented Feb 14, 2024

Supersedes #2892

This PR specifies the build-system in pyproject.toml

This change adds build-system metadata to pyproject.toml and
ensures the dir for setup.py is in sys.path.

The sys.path modification is to ensure the project ./tools/
modules can be imported in setup.py during editable install.

With this tweak to the project metadata, it should be
possible to install pyqtgraph with an editable install,
using setuptools

```
mkdir newproject; cd newproject
python3 -m venv --prompt newproject env
source env/bin/activate
pip install -e ../pyqtgraph/ --config-settings editable_mode=compat
```
@j9ac9k j9ac9k merged commit 736ce7f into pyqtgraph:master Feb 14, 2024
@j9ac9k j9ac9k deleted the better-editable-install branch February 14, 2024 22:56
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.

2 participants