From 23945b4cc602438a97c63ba61cd920ef27e131b6 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 13 Jun 2022 15:23:04 +0200 Subject: pkg: fix gerbolyze script this broke for no apparent reason. python packaging is terrible. so much enterprise-grade code for what really should be a very simple job. --- MANIFEST.in | 1 + bin/gerbolyze | 5 +++++ setup.py | 5 +---- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 bin/gerbolyze diff --git a/MANIFEST.in b/MANIFEST.in index a95aa03..eb7ab00 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,3 +6,4 @@ include MANIFEST.in include setup.py recursive-include gerbolyze *.py +recursive-include bin * diff --git a/bin/gerbolyze b/bin/gerbolyze new file mode 100644 index 0000000..4e1442a --- /dev/null +++ b/bin/gerbolyze @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 + +if __name__ == '__main__': + import gerbolyze + gerbolyze.cli() diff --git a/setup.py b/setup.py index 970ece3..a3af16d 100755 --- a/setup.py +++ b/setup.py @@ -29,10 +29,7 @@ setup( name = 'gerbolyze', version = get_version(), packages=['gerbolyze'], - entry_points = ''' - [console_scripts] - gerbolyze=gerbolyze:cli - ''', + scripts=['bin/gerbolyze'], description = ('A high-resolution image-to-PCB converter. Gerbolyze plots SVG, PNG and JPG onto existing gerber ' 'files. It handles almost the full SVG spec and deals with text, path outlines, patterns, arbitrary paths with ' 'self-intersections and holes, etc. fully automatically. It can vectorize raster images both by contour ' -- cgit