Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create install package. #145

Open
CEXT-Dan opened this issue Dec 21, 2024 · 13 comments
Open

Create install package. #145

CEXT-Dan opened this issue Dec 21, 2024 · 13 comments

Comments

@CEXT-Dan
Copy link
Owner

CEXT-Dan commented Dec 21, 2024

related [#73][#78][#86][#67]

Users should be able to install using PIP, PIP – Path to This repository

  • should automagically install wxPython and other dependencies, I.e. debug py.
  • Loading, To be determined
  • remove the need for a .INI, can still be used for development
  • Remove special VENV handling from the main module, and loader, should behave as any other python package. Users will be responsible for what module gets loaded into CAD, in a VENV context.
  • loader behavior, will search (Global/VENV) ..\site-packages for wxPython, fail if not found
  • pyrx_onload will be searched for using CAD's findfile
  • make installer install .bundle for AutoCAD

New discussions should be created to resolve issues and back referenced here, so this task remains clear

@gswifort
Copy link
Contributor

New RxLoader #146

@gswifort
Copy link
Contributor

loader behavior, will search local ..\ site-packages\pyrx for pyrx_onload fist, otherwise fall back to CAD’s search path settings

#147

@CEXT-Dan
Copy link
Owner Author

CEXT-Dan commented Dec 24, 2024

I have no idea what I'm doing, seems to work

python -m pip install "pyrx @ git+https://github.com/CEXT-Dan/PyRx.git#subdirectory=pyrx"
python -m pip uninstall pyrx

@CEXT-Dan
Copy link
Owner Author

PEP 541 Request: PyRx #5353
pypi/support#5353

@gswifort
Copy link
Contributor

python -m pip install "pyrx @ git+https://github.com/CEXT-Dan/PyRx.git#subdirectory=pyrx"

Installation via pip #150

@schoeller
Copy link
Contributor

Tested on my install and works. Thx a ton.

@CEXT-Dan
Copy link
Owner Author

Thanks for testing, I tried not to break anything from the development perspective. I had to change the stub path though, just as an FYI

@schoeller
Copy link
Contributor

Where does the pyrx_onload.py attach to? It used to live in

1# AppData\Local\Programs\PyRx\Bin\

Is it now:

2# AppData\Local\Programs\Python\Python312\Lib\site-packages\pyrx\?

@CEXT-Dan
Copy link
Owner Author

removed the #subdirectory

trunk
python -m pip install "pyrx @ git+https://github.com/CEXT-Dan/PyRx.git"

tag
python -m pip install "pyrx @ git+https://github.com/CEXT-Dan/PyRx.git@v2.1.3"

@CEXT-Dan
Copy link
Owner Author

CEXT-Dan commented Dec 24, 2024

Where does the pyrx_onload.py attach to? It used to live in

I will improve this, the routine uses find file, so if you use an existing search path, or add a new search path, in bricscad’s settings, it should find it.

@schoeller
Copy link
Contributor

@CEXT-Dan: Cheers for the Xmas present. All the best to all of you!

@CEXT-Dan
Copy link
Owner Author

CEXT-Dan commented Dec 27, 2024

PEP 541 Request: PyRx #5353 pypi/support#5353

reading some of the older requests, maybe it's better to have a new name for PyPi
https://peps.python.org/pep-0541/#removal-of-an-abandoned-project

discuss in [#152]

@schoeller
Copy link
Contributor

schoeller commented Dec 27, 2024 via email

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

No branches or pull requests

3 participants