Skip to content

pip install from PyPI broken #41

@bjlittle

Description

@bjlittle

@pletzer The existing mechanism within setup.py is conda centric, in that it is searching for include files for vtk and netcdf.

However, when installing the mint dependencies from PyPI, these typically are installed by pip as binary wheels, and as such don't contain the source code include files, only the dynamic libraries.

As such, attempting to install mint==1.13.1 with pip fails (even when the pip dependencies are pre-installed):

> pip install python-mint==1.13.1
Collecting python-mint==1.13.1
  Using cached python-mint-1.13.1.tar.gz (81 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /tmp/persistent/itwl/miniconda3/envs/mint-install-pypi/bin/python3.8 /tmp/persistent/itwl/miniconda3/envs/mint-install-pypi/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /var/tmp/tmp77o_acxy
       cwd: /var/tmp/pip-install-xksexzsc/python-mint_f7e92944d84743caa20f8a75797a088c
  Complete output (25 lines):
  Traceback (most recent call last):
    File "setup.py", line 36, in getCondaVTK
      version = list(include_dir.glob("vtk-*"))[-1].name
  IndexError: list index out of range
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/tmp/persistent/itwl/miniconda3/envs/mint-install-pypi/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 280, in <module>
      main()
    File "/tmp/persistent/itwl/miniconda3/envs/mint-install-pypi/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/tmp/persistent/itwl/miniconda3/envs/mint-install-pypi/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 114, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/var/tmp/pip-build-env-91_ztpfc/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 154, in get_requires_for_build_wheel
      return self._get_build_requires(
    File "/var/tmp/pip-build-env-91_ztpfc/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 135, in _get_build_requires
      self.run_setup()
    File "/var/tmp/pip-build-env-91_ztpfc/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 150, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 82, in <module>
      vtklib = getCondaVTK()
    File "setup.py", line 38, in getCondaVTK
      raise RuntimeError('ERROR: you need to "conda install vtk"')
  RuntimeError: ERROR: you need to "conda install vtk"
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/a5/e5/dc2d51f7ec2bdd483ae395fc08c8addb8d2e25e46f9cf12174ab4446213a/python-mint-1.13.1.tar.gz#sha256=ff09e3dbe5cb752d6e108b6efacd180110e0f42dbee32ccd1db620b9644eb5be (from https://pypi.org/simple/python-mint/) (requires-python:<3.9,>3.6). Command errored out with exit status 1: /tmp/persistent/itwl/miniconda3/envs/mint-install-pypi/bin/python3.8 /tmp/persistent/itwl/miniconda3/envs/mint-install-pypi/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /var/tmp/tmp77o_acxy Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement python-mint==1.13.1 (from versions: 1.8.0, 1.13.1)
ERROR: No matching distribution found for python-mint==1.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions