From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Immanuel Litzroth Newsgroups: gmane.emacs.devel Subject: Distributing packages with native emacs modules Date: Thu, 1 Oct 2020 10:47:16 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9154"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 01 10:48:56 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kNuGm-0002Gh-LO for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Oct 2020 10:48:56 +0200 Original-Received: from localhost ([::1]:34586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNuGl-0004mY-Nh for ged-emacs-devel@m.gmane-mx.org; Thu, 01 Oct 2020 04:48:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38346) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNuFn-0004Hn-DH for emacs-devel@gnu.org; Thu, 01 Oct 2020 04:47:55 -0400 Original-Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]:40507) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNuFl-0004p6-RG for emacs-devel@gnu.org; Thu, 01 Oct 2020 04:47:55 -0400 Original-Received: by mail-io1-xd30.google.com with SMTP id k25so1196213ioh.7 for ; Thu, 01 Oct 2020 01:47:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=nrBQomV4A2CFHSsivc0oEnJyjKdK1m4MdEFYim0uHcQ=; b=jnF0Ig2CN6ePS8fppyRGHpcEAz1/bPQtyKSAumK69rf+HuJRaSaXAQkBZRzNWYfb69 4q4AQYlDAuEG2z4ixe54PCaYnHJN3OiPMth0qkLES1wT/Uk8aJXdHaCYGcMKgdset8eU kSy5EmNs6Kwz7+sYNLzoSHWGlAIZWPbepnTXRBwnSN9Ys/ThplGm5RWOE+lO+XRaLoyC 65HhRGNPS/CTFf+9AC/JuHVHYeJhWPp2Vlb46ps3fbqCK02hm0+4ZocDbtfLj6eYPgVu NtCLdu3cGtivpTGAs86QfRNC2IuLpudwPNBemaSm2+kXqPthA/0xzlp0IKJDtmCkQjhl PYig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nrBQomV4A2CFHSsivc0oEnJyjKdK1m4MdEFYim0uHcQ=; b=BE+YKD3YHN5w8dhTHLZgi4/IvabUjf/Cke5Jt6HQI1uKrwQWnsDR2PZKwzRjm0VEgp mHQ1OZlKsEQmgP4oXKUL3KxPXXOQzKyxof4hOt479d5FuFfuJIi1W1o7IZTDV0iz1K1H RYNgUMV+BeH2IUeipRI+APmQ0LENxfsq6tPbHThPZkui4HfJZTdw6d33syiT06ACXyyI lpkItYBbqrAqwf0+fMZ1K1VIB4UcLki/XL6T31AZNCgS3woca125P2rOPCHa1UUt0L0P sCig5k9jfKvtVCft1GlDcgXchMCW6uUhGGcNlqKA2uWiISlXWvl5DVOecjKTkHH5DO2F fSMw== X-Gm-Message-State: AOAM531JfRErMxN3ZrZ1ju6nFAnPgb/zfm0gJcKVri6uVu5H4i6WkqSA z2UUkJMHB+VY3g7LsgglRom1teJbsqaHNQ5DfqkPFJU= X-Google-Smtp-Source: ABdhPJwx8QzG//HN0zA0tGGQunANwECBxmvIiz7MJKJNXCUOvcVqEs1axC9Y7jv3YSAi8PX3gc+3lYR0hk5Kb+YuhNQ= X-Received: by 2002:a05:6638:1607:: with SMTP id x7mr5046596jas.109.1601542071735; Thu, 01 Oct 2020 01:47:51 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::d30; envelope-from=immanuel.litzroth@gmail.com; helo=mail-io1-xd30.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:256828 Archived-At: Gents, I'm trying to figure out how to distribute a package which has some C++ code implementing an emacs module. I'm currently not 100% clear on all that: 1) It seems the package repo's only do byte compilation of el files? 2) Are there examples or packages doing compilation of modules? 3) It would be possible to wrap the compilation of the package in an "(eval-when-compile" but that would be quite laborious. Is that a route that has been taken in the past? 4) The other option is to ship the code to the user and tell him/her to run the compilation if the binary module isn't there yet (possible providing an elisp function to do that). Any thoughts? Immanuel -- -- Researching the dual problem of finding the function that has a given point as fixpoint.