unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org
Subject: Re: configure checks for python3-notmuch2 module
Date: Wed, 06 Oct 2021 21:58:19 +0300	[thread overview]
Message-ID: <m2wnmqkmk4.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <m27deqgw4i.fsf@guru.guru-group.fi>

On Wed, Oct 06 2021, Tomi Ollila wrote:

>
> So, on Fedora 34, without python3-devel installed
>
> $ python3 -c 'import cffi,setuptools; cffi.FFI().verify()'
> __pycache__/_cffi__xd915627fxd88346ae.c:2:10: fatal error: Python.h: No
> such file or directory
>     2 | #include <Python.h>
>       |          ^~~~~~~~~~
> compilation terminated.
>
> (as of now python3-devel-3.9.7-1.fc34 provides /usr/include/python3.9/Python.h)
>
> (debian systems may work differently -- w/ strace the above command
> line did not show any access to Python.h...)


The reason for the above was probably that something was cached; got
exactly the same problem when tried in debian:11 (podman) container 
w/o libpython3-dev (*) -- and after apt-get install libpython3-dev
the above cffi.FFI().verify() worked

Tomi


(*) executed the following on top of docker.io/library/debian:11
    and then ./configure in notmuch source dir...

  export DEBIAN_FRONTEND=noninteractive
  apt-get update
  apt-get install -y -q build-essential emacs-nox gdb git man \
          dtach libxapian-dev libgmime-3.0-dev libtalloc-dev \
          python3-sphinx python3-cffi python3-pytest \
          python3-setuptools gpgsm parallel
  apt-get -y autoremove
  apt-get -y clean
  rm -rf /var/lib/apt/lists/

>
>>
>> cheers,
>>
>> d
>
> Tomi

  reply	other threads:[~2021-10-06 18:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-11 21:29 configure checks for python3-notmuch2 module David Bremner
2021-07-12  7:14 ` Michael J Gruber
2021-07-25 12:00   ` Tomi Ollila
2021-07-15 11:14 ` Tomi Ollila
2021-10-06 11:42   ` David Bremner
2021-10-06 12:45     ` Tomi Ollila
2021-10-06 18:58       ` Tomi Ollila [this message]
2021-10-07 12:09 ` [PATCH] configure: check explicitely for python dev (include) files David Bremner
2021-10-08 19:22   ` Tomi Ollila
2021-10-09 20:15     ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2wnmqkmk4.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).