A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-June/025313.html below:

[Python-Dev] Please give this patch for building bsddb a try

[Python-Dev] Please give this patch for building bsddb a tryGreg Ward gward@python.net
Thu, 13 Jun 2002 11:33:02 -0400
On 11 June 2002, Martin v. Loewis said:
> It actually only requires different init functions. To support that
> with distutils, you need to tell distutils to generate different
> object files from the same source file, which is probably not
> supported out of the box.

In theory:

  setup(...
        ext_modules=[Extension("foo1", ["foo.c"],
                               define_macros=[('FOOSTYLE', 1)]),
                     Extension("foo2", ["foo.c"],
                               define_macros=[('FOOSTYLE', 2)])])

should work.  See
  http://www.python.org/doc/current/dist/setup-script.html#SECTION000330000000000000000

Untested, YMMV, etc.

        Greg
-- 
Greg Ward - just another Python hacker                  gward@python.net
http://starship.python.net/~gward/
I have the power to HALT PRODUCTION on all TEENAGE SEX COMEDIES!!




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4