aboutsummaryrefslogtreecommitdiffstats
path: root/tagit/external
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-03-05 19:16:22 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-03-05 19:16:22 +0100
commit5e88d395dee651175a277092c712249e3898a7d8 (patch)
treee6e0b475c7ab5c6a7ff4f0ea7ad1b08cecf05e68 /tagit/external
parent54c1f6f845765fa7ed8720bbbc0130d99fc7a123 (diff)
downloadtagit-5e88d395dee651175a277092c712249e3898a7d8.tar.gz
tagit-5e88d395dee651175a277092c712249e3898a7d8.tar.bz2
tagit-5e88d395dee651175a277092c712249e3898a7d8.zip
build fixes
Diffstat (limited to 'tagit/external')
-rw-r--r--tagit/external/setproperty/README.md24
-rw-r--r--tagit/external/setproperty/build.py5
-rw-r--r--tagit/external/setproperty/preprocess.py8
-rw-r--r--tagit/external/setproperty/setup.py1
4 files changed, 37 insertions, 1 deletions
diff --git a/tagit/external/setproperty/README.md b/tagit/external/setproperty/README.md
index e579132..4849b6c 100644
--- a/tagit/external/setproperty/README.md
+++ b/tagit/external/setproperty/README.md
@@ -1,5 +1,27 @@
-build with
+# SetProperty
+
+Analigous to kivy.properties.ListProperty, SetProperty provides a wrapper
+that extends python's set() with [Kivy](https://kivy.org) events.
+
+## Installation
+
+Note that you'll need Cython to run the following commands.
+Install Cython via:
+
+$ pip install Cython
+
+or via your system's package manager (e.g., ``sudo apt install cython``).
+
+Then, cythonize the SetProperty with:
+
+$ python preprocess.py
+
+build the shared library from cythonized with:
+
+$ python build.py build_ext --inplace
+
+or perform both steps with one command:
$ python setup.py build_ext --inplace
diff --git a/tagit/external/setproperty/build.py b/tagit/external/setproperty/build.py
new file mode 100644
index 0000000..9b3d6ab
--- /dev/null
+++ b/tagit/external/setproperty/build.py
@@ -0,0 +1,5 @@
+
+from distutils.core import Extension, setup
+ext = Extension(name="setproperty", sources=["setproperty.c"])
+setup(ext_modules=[ext])
+
diff --git a/tagit/external/setproperty/preprocess.py b/tagit/external/setproperty/preprocess.py
new file mode 100644
index 0000000..7c85b86
--- /dev/null
+++ b/tagit/external/setproperty/preprocess.py
@@ -0,0 +1,8 @@
+
+from distutils.core import Extension
+from Cython.Build import cythonize
+
+ext = Extension(name="setproperty", sources=["setproperty.pyx"])
+cythonize(ext)
+
+
diff --git a/tagit/external/setproperty/setup.py b/tagit/external/setproperty/setup.py
index 8500340..bd95d70 100644
--- a/tagit/external/setproperty/setup.py
+++ b/tagit/external/setproperty/setup.py
@@ -4,3 +4,4 @@ from Cython.Build import cythonize
# define an extension that will be cythonized and compiled
ext = Extension(name="setproperty", sources=["setproperty.pyx"])
setup(ext_modules=cythonize(ext))
+