Code Monkey home page Code Monkey logo

mesonpep517's Introduction

mesonpep517

This is a simple module that implements pep517 for the meson build system.

This means that you only need to provide a pyproject.toml in your project source root to be able to publish your project built with meson on PyPi and to create a wheel for the project.

For more information have a look at the documentation

mesonpep517's People

Contributors

thiblahute avatar spotlightkid avatar tristan957 avatar abadger avatar naveen521kk avatar rgommers avatar

Stargazers

Deactivated avatar

Watchers

Alexis Jeandet avatar  avatar

mesonpep517's Issues

Can not find meson executable in Python 3.10, meson 0.62.1

I am not sure when this stopped working but with latest meson and python there see to be some issue and meson executable does not seem to be in path.
Maybe we can import meson and execute it directly instead of relying on its executable?

[build-system]
requires = [
   "wheel",
   "meson>=0.62.1",
   "mesonpep517",
   "pybind11>=2.8.1",
   "ninja",
]
build-backend = "mesonpep517.buildapi"

Full pyproject.toml: https://github.com/Nic30/hwtHls/blob/llvm_mir_integration/pyproject.toml

Processing /root/project
  Installing build dependencies ... -� �\� �|� �/� �-� �\� �done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... -� �\� �|� �/� �-� �\� �|� �/� �-� �\� �|� �/� �done
  Preparing metadata (pyproject.toml) ... -� �error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [22 lines of output]
      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/tmp/pip-build-env-3ri6jxdy/overlay/local/lib/python3.10/dist-packages/mesonpep517/buildapi.py", line 269, in prepare_metadata_for_build_wheel
          meson_configure(builddir, config_settings=config_settings)
        File "/tmp/pip-build-env-3ri6jxdy/overlay/local/lib/python3.10/dist-packages/mesonpep517/buildapi.py", line 51, in meson_configure
          meson(*args, builddir=args[0], config_settings=config_settings)
        File "/tmp/pip-build-env-3ri6jxdy/overlay/local/lib/python3.10/dist-packages/mesonpep517/buildapi.py", line 25, in meson
          return subprocess.check_output(['meson'] + list(args))
        File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
          return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
        File "/usr/lib/python3.10/subprocess.py", line 501, in run
          with Popen(*popenargs, **kwargs) as process:
        File "/usr/lib/python3.10/subprocess.py", line 966, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "/usr/lib/python3.10/subprocess.py", line 1842, in _execute_child
          raise child_exception_type(errno_num, err_msg, err_filename)
      FileNotFoundError: [Errno 2] No such file or directory: 'meson'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.


Exited with code exit status 1

Full log: https://app.circleci.com/pipelines/github/Nic30/hwtHls/195/workflows/50629ae8-6a92-4310-b7bf-a9a0fc5dd959/jobs/201

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.