From 04e3f85c043176e4701b3b6587e446e41d14a3f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com> Date: Tue, 9 Apr 2024 09:17:57 +0200 Subject: [PATCH] docs fixed --- README.md | 3 ++- snakehouse/__init__.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 44fd59c..d3f725a 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ snakehouse [](https://github.com/smok-serwis/snakehouse) snakehouse is a tool to pack mutiple .pyx files -into a single extension. +into a single extension so that they are importable as separate +Python modules inside Python. Inspired by [this StackOverflow discussion](https://stackoverflow.com/questions/30157363/collapse-multiple-submodules-to-one-cython-extension). diff --git a/snakehouse/__init__.py b/snakehouse/__init__.py index 7b3277b..d3c1ec2 100644 --- a/snakehouse/__init__.py +++ b/snakehouse/__init__.py @@ -4,4 +4,7 @@ from .multibuild import Multibuild, find_all from .faster_builds import monkey_patch_parallel_compilation from .requirements import read_requirements_txt, find_c, find_pyx_and_c, find_pyx -__version__ = pkg_resources.require('snakehouse')[0].version +try: + __version__ = pkg_resources.require('snakehouse')[0].version +except pkg_resources.DistributionNotFound: + __version__ = '1.6a2' -- GitLab