Override DEFINE in setup.cfg file in source eggs.

The original PySQLite 2.6.0 egg contains a file setup.cfgthat looks like this:

[build_ext]
#define=
#include_dirs=/usr/local/include
#library_dirs=/usr/local/lib
libraries=sqlite3
define=SQLITE_OMIT_LOAD_EXTENSION

I would like to build an egg with SQLITE_OMIT_LOAD_EXTENSIONdefine disabled (not installed). I could do this by uncommenting this line in the setup.cfg file, but I would like to do it in the environment zc.buildoutusing zc.recipe.egg, zc.recipe.cmmior any other recipe that could help me.

So, is there an easy way to install PySQLite with extensions turned on, but without intervention setup.cfg?

+3
source share
1 answer

Yes there is:

[buildout]
parts = pysql

[pysql]
recipe = zc.recipe.egg:custom
egg = PySQLite
undef=SQLITE_OMIT_LOAD_EXTENSION
+4
source

Source: https://habr.com/ru/post/1749364/


All Articles