Skip to content

Commit

Permalink
Merge pull request #88 from realratchet/master
Browse files Browse the repository at this point in the history
Removed the nim runtime requirement
  • Loading branch information
realratchet authored Oct 4, 2023
2 parents 9dc2112 + 1cb7a82 commit 18700d6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ docs/
# personal notes
*scratch*.py
_nimlite/nimlite
_nimlite/*.so
_nimlite/*.pyd
3 changes: 2 additions & 1 deletion tablite/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ class Config(object):
BACKEND_NIM = "NIM"
BACKEND_PYTHON = "PYTHON"
BACKEND = BACKEND_PYTHON if platform.system() == "Windows" else BACKEND_NIM

USE_NIMPORTER = os.environ.get("USE_NIMPORTER", "false").lower() in ["1", "t", "true", "y", "yes"]

NIM_SUPPORTED_CONV_TYPES = ["Windows-1252", "ISO-8859-1"]

workdir = pathlib.Path(os.environ.get("TABLITE_TMPDIR", f"{tempfile.gettempdir()}/tablite-tmp"))
Expand Down
5 changes: 4 additions & 1 deletion tablite/nimlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

if not USE_CLI_BACKEND:
paths = sys.argv[:]
import nimporter
if Config.USE_NIMPORTER:
import nimporter

nimporter.Nimporter.IGNORE_CACHE = True
import _nimlite.nimlite as nl

sys.argv.clear()
Expand Down
2 changes: 1 addition & 1 deletion tablite/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
major, minor, patch = 2023, 8, "dev0"
major, minor, patch = 2023, 8, "dev1"
__version_info__ = (major, minor, patch)
__version__ = ".".join(str(i) for i in __version_info__)

0 comments on commit 18700d6

Please sign in to comment.