juancarlospaco / choosenim_install

Nim integration for Python PIP, install Nim via PIP, write Python modules using Nim
https://pypi.org/project/choosenim-install
MIT License
21 stars 3 forks source link

Choosenim doesn't install Nim standard library #3

Closed Pebaz closed 3 years ago

Pebaz commented 3 years ago

I grepped my hard disk looking for system.nim needed by Nimporter for any compilation, and none was found.

Unfortunately, without a way to solve this one, choosenim installation is not an option because Nimporter needs to find the standard library for source and binary distributions.

Pebaz commented 3 years ago

Info: Normally it should be in the lib/system.nim folder next to the bin/ directory holding all the Nim binaries. For some reason, it's not there after I installed choosenim_install.

Pebaz commented 3 years ago

I think I found the solution. choosenim_install needs to copy/paste the choosenim binary somewhere onto the PATH so that Nimporter can use choosenim to find the standard library.

Pebaz commented 3 years ago

Perhaps it could install it into Python's Scripts directory on Win32 or bin on *nix.

Pebaz commented 3 years ago

More info: I believe I found a way to work with all 3 installation methods using Nimporter:

  1. Choosenim
  2. choosenim_install
  3. Manual installation

But still testing. Will post results here.

juancarlospaco commented 3 years ago

https://github.com/nim-lang/Nim/search?q=findNimStdLibCompileTime

Pebaz commented 3 years ago

Found a way to work with all 3 installation methods.