ports/cad/cura/files/patch-plugins_USBPrinting_USBPrinterOutputDeviceManager.py
Diane Bruce 5019d0a382 This patch updates Cura and all associated dependencies to 4.7.1.
Also, it adds math/py-numpy-stl - an optional dependency that makes
loading STL files much faster. Without it, Cura was complaining:

2020-09-20 02:19:31,877 - WARNING - [MainThread] STLReader.STLReader.<module> [32]: Could not find numpy-stl, falling back to slower code.

I'm not sure where the 6.x version in cad/fdm_materials came from, seems
like now that project has its version in sync with the Cura version,
so I chose to increment PORTEPOCH for that. [Greg]

- fdm_materials adds some new materials usable with Cura
- I had to bump PORTEPOCH on a couple of ports
- py-numpy-stl was added on a separate commit
- Bump version checking in Cura on some dependancies
[db]

PR:		ports/249468
Submitted by:	greg@unrelenting.technology
2020-09-26 19:53:09 +00:00

14 lines
715 B
Python

We cannot really distinguish between USB and non-USB here,
as port[2] is 'n/a' on FreeBSD.
--- plugins/USBPrinting/USBPrinterOutputDeviceManager.py.orig 2020-07-23 19:29:25 UTC
+++ plugins/USBPrinting/USBPrinterOutputDeviceManager.py
@@ -123,8 +123,6 @@
port = (port.device, port.description, port.hwid)
if not port[2]: # HWID may be None if the device is not USB or the system doesn't report the type.
continue
- if only_list_usb and not port[2].startswith("USB"):
- continue
# To prevent cura from messing with serial ports of other devices,
# filter by regular expressions passed in as environment variables.