12 Commits

Author SHA1 Message Date
c.lamboo
1bf789f6f4 Update pyinstaller for mac 2024-01-26 10:36:13 +01:00
Jelle Spijker
466297d06e Bumped up pyinstaller version 2023-02-23 13:24:30 +01:00
Jelle Spijker
c0371f2a0e Lock pyinstaller version 5.6.2
The new version 5.7.0 won't install correctly on my PC.
Need to double check if this is a local problem, if that
is the case it should be reverted.

Contributes to CURA-10072
2022-12-27 14:18:31 +01:00
jspijker
104bc585f4 Added a linting tool for Cura Printers and Profiles
printer-linter works of definitions, profiles and meshes;
It has various diagnostic checks. With possible suggestions for fixes.
It should also be able to fix certain diagnostic issues and it can be used
to format the files according to code-style.

It can output the diagnostics in a yaml file, which can then be used to comment
on PR's with suggestions to the author. Future PR.

The settings for the diagnostics and checks are defined in `.printer-linter`
and are very self explanatory.

```
checks:
    diagnostic-mesh-file-extension: true
    diagnostic-mesh-file-size: true
    diagnostic-definition-redundant-override: true
fixes:
    diagnostic-definition-redundant-override: true
format:
    format-definition-bracket-newline: false
    format-definition-paired-coordinate-array: true
    format-definition-sort-keys: true
    format-definition-indent: 4
    format-profile-space-around-delimiters: true
    format-profile-sort-keys: true
diagnostic-mesh-file-size: 1200000
```
2022-11-19 19:07:32 +01:00
j.spijker@ultimaker.com
f1a6c54414 Fixed nsis build script
Contributes to CURA-9365
2022-07-15 12:03:51 +02:00
j.spijker@ultimaker.com
b84ee29627 ducktype the PyInstaller BUNDLE
Should be an acceptable workaround for pyinstaller/pyinstaller#6612

The `assemble` method is probably to0 specific to contribute with
a PR against PyInstaller.

Contributes to CURA-9365
2022-07-07 05:38:08 +02:00
jellespijker
03af1dbd4f Use forked pyinstaller
Contributes to CURA-9365
2022-07-05 17:30:07 +02:00
jellespijker
54f9384d27 Use regular Python for the release
Contributes to CURA-9365
2022-07-05 11:45:48 +02:00
j.spijker@ultimaker.com
dee54c4eb1
Use forked pyinstaller with fix
pyinstaller doesn't play nice with MacOS Apps and codesigning.
https://developer.apple.com/library/archive/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG206

The following personal fork should provide a quick fix for this even
though pyinstaller still doesn't fully adhere to the file structure
specified by Apple.

See branch: https://github.com/jellespijker/pyinstaller@binaries_in_frameworks
Once this has been tested and verified to work I will open up
a PR against the pyinstaller repo.

Contributes to CURA-9365
2022-07-01 23:26:56 +02:00
j.spijker@ultimaker.com
055eda2856 Added the pyinstaller-hook-contrib
Contributes to CURA-9365
2022-07-01 05:25:25 +02:00
j.spijker@ultimaker.com
ca83874f65 Add sip as dev requirement
Although net technically needed by Cura, our other Python binding
modules (such as pynest2d, pyArcus, pySavitar) might need it if
the need to be build on the host machine

Contributes to CURA-9365
2022-06-14 08:42:23 +02:00
j.spijker@ultimaker.com
8c6a5baf35 Define Cura Python requirements
Our requirements.txt was never fully utilized.
For our builds we use a requirements.txt
specified in the cura-build-enviroment repo.
But that file contained all the Python requirements
including, testing and dev tools.

This requirements.txt should contain the bare minimum
for running Python. Since these dependencies are shipped
we need to specify the hashes as well.

These hashes aren't necessary for build and test requirements

Contributes to CURA-9365
2022-06-12 17:24:30 +02:00