Jelle Spijker
b513bc9ce0
Restore removed `class` definition
2 years ago
Jelle Spijker
ffdea3adba
Rename VirtualPythonEnv to correct name
2 years ago
Jelle Spijker
9ee32ab319
Fix Environment variable for VirtualPythonEnv
2 years ago
Shane Scott
dbde5bf72e
Fix typo DYLD_LYBRARY_PATH -> DYLD_LIBRARY_PATH
...
Possible cause of a Mac build issue for Cura
3 years ago
joeydelarago
cceda8c910
Refactor PyCharmRunEnv to use templates stored in the conan package.
...
A little clean up to make the code more readable.
4 years ago
j.spijker@ultimaker.com
3eab82b637
Add cura env to Run environments
...
Contributes to CURA-8831
4 years ago
Jelle Spijker
7b1a92b92c
use umbase 0.1.5
4 years ago
c.lamboo
4115b0fc99
Revert "Revert "Specify channel from conanfile for conandata""
...
This reverts commit d833a8361b .
4 years ago
c.lamboo
9d9a97b3ed
Revert "Revert "Specify channel for conandata""
...
This reverts commit 4cc5c3a54b .
4 years ago
c.lamboo
4cc5c3a54b
Revert "Specify channel for conandata"
...
This reverts commit 4918c2d741 .
4 years ago
c.lamboo
d833a8361b
Revert "Specify channel from conanfile for conandata"
...
This reverts commit dd4b4049b6 .
4 years ago
j.spijker@ultimaker.com
dd4b4049b6
Specify channel from conanfile for conandata
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
4918c2d741
Specify channel for conandata
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
168c92416e
Make sure that (DY)LD_LIBRARY_PATH contains bin dir of venv
...
Such that it can find the copied dynamic libraries
Contributes to CURA-9365
4 years ago
Jelle Spijker
7da9f433c4
Always return ps1 on windows
4 years ago
j.spijker@ultimaker.com
89300371e1
Use the correct venv_folder when not in local cache
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
c10fb89ca2
Fix source install
...
If the package not in local cache then the
user_info isn't defined yet
Contributes to CURA-9365
4 years ago
Ghostkeeper
b3574a58aa
Loosen up path check for pip_requirements
...
On Linux and MacOS it's provided with the full path here. This is a simple (albeit overly loose) way to allow that.
Contributes to issue CURA-9365.
4 years ago
Ghostkeeper
5cd446306f
Add pip_requirements_build to venv generator
...
Then it will also install the build-requirements into that virtual environment, such as Pyinstaller.
Contributes to issue CURA-9365.
4 years ago
j.spijker@ultimaker.com
d2e410f897
Add shared libs in site-packages to env PATHs
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
879d5fcdda
Use regular conan script generation
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
533035ec5f
Fixed creating VirtualPythonEnv from remote install
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
c06ee39be6
run python with the run environment
...
This should allow for using the cpython dependency
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
91b9d5f5d0
Use the pathlib module
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
f74e045b69
Use the CPython dependency for the VirtualPythonEnv
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
d44fd2e1ff
Fix pycharmrunenv
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
704196f47e
Use um_data function to get entrypoint
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
7f1a00f08c
Use entrypoint for Pycharm run filename
...
Pycharm keep renaming mine, hopeing this
solves it.
Contributes to CURA-9177_Fix_CI_CD
4 years ago
j.spijker@ultimaker.com
3ffd239a9d
Add a PycharmRunEnv Generator
...
This will generate a Pycharm run target
and use the conan paths
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
f6c7a77072
Export variables directly
...
The Paths weren't set when the export was done indirectly.
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
639b8ef9dc
Remove win_bash arg
...
No longer needed, was a remnant of the old path troubles
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
0fc21e82b3
Install wheels and setuptools as base
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
cd24959ffc
Use the correct Env naming scheme depending on OS
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
34c3fb69d1
Use the correct quotes for each OS
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
745d8155b0
Add the activate github jinja template
...
This should allow the activation of a virtual python env on GH
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
0898492dda
Fix the Shell activate script
...
Should be else instead of then 🤦
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
332fa8f5e4
Uniform name for python executable on all three OSes
...
Make sure there executable is named the same on all three OSes
this allows it to be called with `python` simplifying GH Actions
steps. So I don't have to add exceptions based on the OS
in the runner Matrix
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
8a9b5a0e86
Renamed activate_github_actions_env
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
e8ba061446
Construct the GH Action environments for the PythonVirtualEnv
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
4c54ea7d78
Construct the GH Action environments with a Generator
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
85c4936234
Generate the activation scripts
...
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
d2d8c2cca7
Switched quote characters
...
https://cpplang.slack.com/archives/C41CWV9HA/p1654942697502539
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
ff842cba50
Make the VirtulPythonEnv more robust
...
It should now be able to also create a venv with another interpreter.
Provided it is installed next to the current interpreter on the same
base Path.
Trying to make execution of the run commands robust on Windows, till no
avail. It states:
```powershell
----Running------
> C:\'Program Files'\Python310\python.exe -m venv venv
-----------------
'C:\'Program' is not recognized as an internal or external command,
operable program or batch file.
```
But if I run the ` C:\'Program Files'\Python310\python.exe -m venv venv`
in the same shell manually it executes correctly.
Contributes to CURA-9365
4 years ago
j.spijker@ultimaker.com
1039fa6044
Added GitHubActionsVirtualEnvs
...
The generators will create GitHub Actions scripts which will set
the environment for the next steps.
Usage as follows in the commandline:
```yml
- name: Conan install
run: conan install . -g GitHubActionsVirtualRunEnv
- name: Activate env
run: <conan_generator_dir>/activate_github_actions_runenv.sh
- name:
run: echo $PATH
```
Contributes to CURA-9177_Fix_CI_CD
4 years ago
j.spijker@ultimaker.com
bdfccc2f0e
VirtualPythonEnv generator added
...
This generator can be used from the commandline as:
`conan install . -g VirtualPythonEnv`
It will then create a virtual environment in the build folder based on
the sys interpreter of a specified interpreter in the conanfile
The venv can be activated as normal
Contributes to CURA-9177_Fix_CI_CD
4 years ago