from .umap_ import UMAP

# Workaround: https://github.com/numba/numba/issues/3341
import numba

import pkg_resources

__version__ = pkg_resources.get_distribution("umap-learn").version

from .umap_ import UMAP

# Workaround: https://github.com/numba/numba/issues/3341
import numba

import pkg_resources

try:
    __version__ = pkg_resources.get_distribution("umap-learn").version
except pkg_resources.DistributionNotFound:
    __version__ = '0.4-dev'

Patch init import to allow for local dev of UMAP code
Patch init import to allow for local dev of UMAP code

  from .umap_ import UMAP
  
  # Workaround: https://github.com/numba/numba/issues/3341
  import numba
  
  import pkg_resources
  
+ try:
- __version__ = pkg_resources.get_distribution("umap-learn").version
+     __version__ = pkg_resources.get_distribution("umap-learn").version
+ except pkg_resources.DistributionNotFound:
+     __version__ = '0.4-dev'
  
Patch init import to allow for local dev of UMAP code
## Code Before:
from .umap_ import UMAP

# Workaround: https://github.com/numba/numba/issues/3341
import numba

import pkg_resources

__version__ = pkg_resources.get_distribution("umap-learn").version

## Instruction:
Patch init import to allow for local dev of UMAP code
## Code After:
from .umap_ import UMAP

# Workaround: https://github.com/numba/numba/issues/3341
import numba

import pkg_resources

try:
    __version__ = pkg_resources.get_distribution("umap-learn").version
except pkg_resources.DistributionNotFound:
    __version__ = '0.4-dev'
