Skip to content

Commit

Permalink
Merge pull request hatching#5 from nbargnesi/make-pip-work-with-9a0d88b
Browse files Browse the repository at this point in the history
fix package installation when dependencies aren't already installed
  • Loading branch information
doomedraven authored Jun 8, 2021
2 parents 9a0d88b + d96e7ed commit a46b237
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
13 changes: 10 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@
# This file is part of SFlock - http://www.sflock.org/.
# See the file 'docs/LICENSE.txt' for copying permission.

from setuptools import setup
from sflock import __version__
from setuptools import setup, find_packages
from distutils.util import convert_path

ver_module_ns = {}
ver_module = convert_path('sflock/__version__.py')
with open(ver_module) as fh:
exec(fh.read(), ver_module_ns)
assert '__version__' in ver_module_ns
version = ver_module_ns['__version__']

setup(
name="SFlock",
version=__version__,
version=version,
author="Hatching B.V.",
author_email="[email protected]",
packages=[
Expand Down
3 changes: 1 addition & 2 deletions sflock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
from sflock.compat import magic
from sflock.exception import UnpackException
from sflock.main import ident, unpack, supported, zipify

__version__ = "0.3.13"
from sflock.__version__ import __version__
2 changes: 2 additions & 0 deletions sflock/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Only set __version__ here; this module is executed by setup.py via exec().
__version__ = "0.3.13"

0 comments on commit a46b237

Please sign in to comment.