Skip to content

Commit

Permalink
Patch for Debian package using distutils instead of setuptools.
Browse files Browse the repository at this point in the history
The Debian image I use on GitHub doesn't have setuptools.
Using distutils is the same for the Debian package.
  • Loading branch information
set-soft committed Jul 19, 2020
1 parent 13a40a9 commit 39bcc1d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
28 changes: 28 additions & 0 deletions debian/patches/001-setup_distutils.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

-import setuptools
+from distutils.core import setup

import os
import sys
@@ -12,7 +12,7 @@
long_description = "KiBoM is a configurable BOM (Bill of Materials) generation tool for KiCad EDA. Written in Python, it can be used directly with KiCad software without the need for any external libraries or plugins. KiBoM intelligently groups components based on multiple factors, and can generate BoM files in multiple output formats. For futher information see the KiBom project page"


-setuptools.setup(
+setup(
name="kibom",

version=KIBOM_VERSION,
@@ -31,7 +31,7 @@

license="MIT",

- packages=setuptools.find_packages(),
+ packages=['kibom'],

scripts=['KiBOM_CLI.py'],

1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# You must remove unused comment lines for the released package.
001-setup_distutils.patch

0 comments on commit 39bcc1d

Please sign in to comment.