Skip to content

Commit

Permalink
Merge pull request #5 from LukasEin/main
Browse files Browse the repository at this point in the history
Fixed installation issues with relative paths in py3.8
  • Loading branch information
pmoulik authored Oct 25, 2023
2 parents 0e93404 + d2fc2cb commit 613ddf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion avni/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@

__path__ = pkgutil.extend_path(__path__, __name__)
for importer, modname, ispkg in pkgutil.walk_packages(path=__path__, prefix=__name__+'.'):
__import__(modname)
if not modname.endswith("setup"): # Relative imports were causing issues with setup.py on python 3.8
__import__(modname)

# append unit definitions
tools.appendunits(constants.ureg)
Expand Down
4 changes: 2 additions & 2 deletions avni/config/units.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
fraction = [] = frac
percent = 1e-2 frac = pct
ppm = 1e-6 fraction
kg/m3 = kg/m^3
m/s2 = m/s^2
# kg/m3 = kg/m^3 # standard units cannot be redefined for python 3.8+
# m/s2 = m/s^2 # standard units cannot be redefined for python 3.8+
m3 = m^3

0 comments on commit 613ddf1

Please sign in to comment.