Code Monkey home page Code Monkey logo

choosenim_install's Introduction

Nim integration for Python PIP

  • AutoInstall Nim directly from Python PIP.
  • AutoInstall of nim, nimble, nimpy, fusion, nodejs, cpython.

Use

$ nim --version
nim: command not found

$ pip install choosenim_install
    choosenim-init: Downloading choosenim-0.6.0_linux_amd64
          Info: Version 1.2.0 already selected
    choosenim-init: ChooseNim installed in /home/juan/.nimble/bin
    Downloading Official package list
        Success Package list downloaded.

Successfully built choosenim-install
Successfully installed choosenim-install-0.0.1

$ nim --version
Nim Compiler Version 1.2.6 [Linux: amd64]
Compiled at 2020-04-03
Copyright (c) 2006-2020 by Andreas Rumpf
active boot switches: -d:release

$

  • You can re-run it several times if you want.

  • Update an old version of Nim to the latest just by reinstalling the package using PIP.

Requisites

Stable

  • Python >=3.5, CPython implementation, Linux or Windows, x86 and ARM, 64Bit.

Experimental

  • Mac, PYPY2, PYPY3, Python2, 32Bit are all Experimental.

History

Originally this used multiple bundled choosenim to install Nim, now it re-implements choosenim functionalities in pure Python.

More Info

Stars

@juancarlospaco@adokitkat@hffqyd@makkus@jmetz@lf-araujo@shaoxie1986@alextremblay

choosenim_install's People

Contributors

adokitkat avatar alextremblay avatar hffqyd avatar jmetz avatar juancarlospaco avatar lf-araujo avatar luisacosta828 avatar makkus avatar pebaz avatar shaoxie1986 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

choosenim_install's Issues

Choosenim doesn't install Nim standard library

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.

Add to path

~/.zshenv can also can be used to add nim to PATH, rustup uses it.

Add compatible Python versions to setup.cfg

Trying to install choosenim_install from Pypi on Windows 10 Python 3.7.3 and it says it can't find it for my current Python version.

Can other compatible Python versions be added?

[bug] Fail to install with pip on Windows

Architecture

x86_64 (Default)

Operating System

Windows

Disk

SSD (Solid)

Memory

32 Gigabytes

CPU Cores

8 CPU Cores

Internet Connection

Optical Fiber (very fast)

What is your web browser?

Firefox/Firefox Fork

Device

Desktop PC

Where are you from?

Japan

What happened?

pip install with a space in username fails. I will anonymize the user name as "User Name" in the output logs. Reproduced by running pip3 install choosenim_install on a Windows machine with a username that contains a space.

Standard Output Logs

pip3 install choosenim_install
Collecting choosenim_install
  Using cached choosenim_install-0.5.5.zip (9.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: choosenim_install
  Building wheel for choosenim_install (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for choosenim_install (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      running bdist_wheel
      running build
      installing to build\bdist.win-amd64\wheel
      running install
      running install_egg_info
      running egg_info
      writing choosenim_install.egg-info\PKG-INFO
      writing dependency_links to choosenim_install.egg-info\dependency_links.txt
      writing top-level names to choosenim_install.egg-info\top_level.txt
      reading manifest file 'choosenim_install.egg-info\SOURCES.txt'
      writing manifest file 'choosenim_install.egg-info\SOURCES.txt'
      Copying choosenim_install.egg-info to build\bdist.win-amd64\wheel\.\choosenim_install-0.5.5-py3.10.egg-info
      running install_scripts
      'C:\Users\User' is not recognized as an internal or external command,
      operable program or batch file.
      <string>:107: UserWarning: Failed to run C:\Users\User Name\AppData\Local\Temp\pip-install-rh7tgta3\choosenim-install_63fc13408b2a446190eb1e384fa2d391\choosenim.exe --yes --verbose --noColor --firstInstall stable
      Traceback (most recent call last):
        File "C:\Development\couchbase-lite-tests\client\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Development\couchbase-lite-tests\client\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Development\couchbase-lite-tests\client\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\build_meta.py", line 416, in build_wheel
          return self._build_with_temp_dir(['bdist_wheel'], '.whl',
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\build_meta.py", line 401, in _build_with_temp_dir
          self.run_setup()
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
          super(_BuildMetaLegacyBackend,
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 210, in <module>
        File "C:\Users\User Name\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\__init__.py", line 107, in setup
          return distutils.core.setup(**attrs)
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
          return run_commands(dist)
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
          dist.run_commands()
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\dist.py", line 1244, in run_command
          super().run_command(command)
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 378, in run
          self.run_command("install")
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\dist.py", line 1244, in run_command
          super().run_command(command)
        File "C:\Users\User Name\AppData\Local\Temp\pip-build-env-mf3ki7j_\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 208, in run
      Exception: (<class 'OSError'>, 'Failed to install choosenim')
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for choosenim_install
Failed to build choosenim_install
ERROR: Could not build wheels for choosenim_install, which is required to install pyproject.toml-based projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.