Skip to content

Commit

Permalink
version 2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
walterverwer committed May 5, 2021
1 parent 83deb92 commit 880e26c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
22 changes: 7 additions & 15 deletions build/lib/walpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,14 @@
@git: https://github.com/walterverwer
"""

hard_dependecies = ['rpy2']
# Let users know if they're missing any of our hard dependencies
hard_dependencies = ('rpy2')
missing_dependencies = []

for dependency in hard_dependencies:
try:
__import__(dependency)
except ImportError as e:
missing_dependencies.append(f'{dependency}: {e}')

if missing_dependencies:
raise ImportError(
'Unable to import required dependencies:\n' + '\n'.join(missing_dependencies)
)
del hard_dependencies, dependency, missing_dependencies
try:
import rpy2
except ImportError as e:
print('You are missing one of the following packages:', hard_dependecies,
'\n If after installing all packages you still have some problems, ',
'make sure that especially rpy2 is correctly installed!')

# Functions in walpy
from .r_importer import r_importer
Expand Down
Binary file removed dist/walpy-2.0.2-py3-none-any.whl
Binary file not shown.
Binary file removed dist/walpy-2.0.2.tar.gz
Binary file not shown.
Binary file added dist/walpy-2.0.3-py3-none-any.whl
Binary file not shown.
Binary file added dist/walpy-2.0.3.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion walpy.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: walpy
Version: 2.0.2
Version: 2.0.3
Summary: General functions
Home-page: https://github.com/walterverwer/walpy
Author: Walter Verwer
Expand Down

0 comments on commit 880e26c

Please sign in to comment.