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

How do you install a workbench once it's created? #21

Open
ToddG opened this issue Aug 26, 2024 · 1 comment
Open

How do you install a workbench once it's created? #21

ToddG opened this issue Aug 26, 2024 · 1 comment

Comments

@ToddG
Copy link
Contributor

ToddG commented Aug 26, 2024

The README is not specific w/respect to installing via pip... or in fact, how a developer is supposed to move from creating the workbench to actually installing, developing, and testing it in FC... the critical step is installing into FC..

  1. How do you determine which python FC is using? For example, when I look in the python console, it seems that python is part of the FC executable. If that's the case, then how do we pip install the workbench into this?
Python 3.10.12 (main, Mar 22 2024, 16:50:05) [GCC 11.4.0] on linux
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>> # Gui.runCommand('Std_Workbench',10)
>>> # Gui.runCommand('Std_ViewStatusBar',1)
>>> import sys
>>> print(sys.executable)
/media/toddg/data1/repos/forked/freecad-source/build/bin/FreeCAD
  1. Someone mentioned simply softlinking into the Mod directory... I'll try that.
@FreeCAD FreeCAD deleted a comment Aug 26, 2024
@looooo
Copy link
Collaborator

looooo commented Aug 26, 2024

it depends on how freecad is installed. If freecad is installed via a package-manager (conda, apt, ...) you can install a workbench with: pip install -e . which will link the directory.
Not sure how it works if you have freecad installed via bundle (appimage, dmg, ...)

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
@ToddG @looooo and others