ekalinin/nodeenv

illumos support

Opened this issue · 0 comments

nodeenv is missing illumos support:

__________________________________ test_smoke __________________________________

tmpdir = local('/tmp/pytest-of-marcel/pytest-15/test_smoke0')

    @pytest.mark.integration
    def test_smoke(tmpdir):
        nenv_path = tmpdir.join('nenv').strpath
>       subprocess.check_call([
            # Enable coverage
            'coverage', 'run', '-p',
            '-m', 'nodeenv', '--prebuilt', nenv_path,
        ])

tests/nodeenv_test.py:30:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['coverage', 'run', '-p', '-m', 'nodeenv', '--prebuilt', ...],)
kwargs = {}, retcode = 1
cmd = ['coverage', 'run', '-p', '-m', 'nodeenv', '--prebuilt', ...]

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['coverage', 'run', '-p', '-m', 'nodeenv', '--prebuilt', '/tmp/pytest-of-marcel/pytest-15/test_smoke0/nenv']' returned non-zero exit status 1.

/usr/lib/python3.9/subprocess.py:373: CalledProcessError
----------------------------- Captured stderr call -----------------------------
 * Install prebuilt node (22.3.0)
Traceback (most recent call last):
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 1547, in <module>
    main()
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 1129, in main
    create_environment(env_dir, args)
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 1005, in create_environment
    install_node(env_dir, src_dir, args)
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 762, in install_node
    install_node_wrapped(env_dir, src_dir, args)
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 778, in install_node_wrapped
    node_url = get_node_bin_url(args.node)
  File "/tmp/nodeenv-1.9.1/nodeenv.py", line 569, in get_node_bin_url
    'arch': archmap[platform.machine()],
KeyError: 'i86pc'