Skip to content

Build wheels for release #29

@tomalrussell

Description

@tomalrussell

It would be nice to have pre-built wheels on PyPI, so end users don't need to compile and SWIG to install OpenUDM.

For reference, pip install openudm without swig installed gives:

Stack trace
Collecting openudm
  Downloading openudm-1.0.3.tar.gz (1.6 MB)
     |████████████████████████████████| 1.6 MB 1.5 MB/s 
Building wheels for collected packages: openudm
  Building wheel for openudm (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: ~/miniconda3/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-o25gsshg/openudm/setup.py'"'"'; __file__='"'"'/tmp/pip-install-o25gsshg/openudm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-3bbe0fu5
       cwd: /tmp/pip-install-o25gsshg/openudm/
  Complete output (18 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/openudm
  copying openudm/MultiCriteriaEval.py -> build/lib.linux-x86_64-3.7/openudm
  copying openudm/__init__.py -> build/lib.linux-x86_64-3.7/openudm
  copying openudm/__main__.py -> build/lib.linux-x86_64-3.7/openudm
  copying openudm/CellularModel.py -> build/lib.linux-x86_64-3.7/openudm
  copying openudm/RasterToolkit.py -> build/lib.linux-x86_64-3.7/openudm
  copying openudm/DevZones.py -> build/lib.linux-x86_64-3.7/openudm
  running build_ext
  building 'openudm._CellularModel' extension
  swigging openudm/CellularModel.i to openudm/CellularModel_wrap.cpp
  swig -python -c++ -o openudm/CellularModel_wrap.cpp openudm/CellularModel.i
  unable to execute 'swig': No such file or directory
  error: command 'swig' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for openudm
  Running setup.py clean for openudm
Failed to build openudm
Installing collected packages: openudm
    Running setup.py install for openudm ... error
    ERROR: Command errored out with exit status 1:
     command: ~/miniconda3/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-o25gsshg/openudm/setup.py'"'"'; __file__='"'"'/tmp/pip-install-o25gsshg/openudm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-mfg5kzdg/install-record.txt --single-version-externally-managed --compile --install-headers ~/miniconda3/include/python3.7m/openudm
         cwd: /tmp/pip-install-o25gsshg/openudm/
    Complete output (18 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/openudm
    copying openudm/MultiCriteriaEval.py -> build/lib.linux-x86_64-3.7/openudm
    copying openudm/__init__.py -> build/lib.linux-x86_64-3.7/openudm
    copying openudm/__main__.py -> build/lib.linux-x86_64-3.7/openudm
    copying openudm/CellularModel.py -> build/lib.linux-x86_64-3.7/openudm
    copying openudm/RasterToolkit.py -> build/lib.linux-x86_64-3.7/openudm
    copying openudm/DevZones.py -> build/lib.linux-x86_64-3.7/openudm
    running build_ext
    building 'openudm._CellularModel' extension
    swigging openudm/CellularModel.i to openudm/CellularModel_wrap.cpp
    swig -python -c++ -o openudm/CellularModel_wrap.cpp openudm/CellularModel.i
    unable to execute 'swig': No such file or directory
    error: command 'swig' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: ~/miniconda3/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-o25gsshg/openudm/setup.py'"'"'; __file__='"'"'/tmp/pip-install-o25gsshg/openudm/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-mfg5kzdg/install-record.txt --single-version-externally-managed --compile --install-headers ~/miniconda3/include/python3.7m/openudm Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions