diff options
Diffstat (limited to 'tagit/external')
-rw-r--r-- | tagit/external/setproperty/README.md | 24 | ||||
-rw-r--r-- | tagit/external/setproperty/build.py | 5 | ||||
-rw-r--r-- | tagit/external/setproperty/preprocess.py | 8 | ||||
-rw-r--r-- | tagit/external/setproperty/setup.py | 1 |
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)) + |