Skip to content

Commit fdace64

Browse files
committed
Update README
1 parent efa7053 commit fdace64

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: README.md

+14
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,20 @@ Then you can install mysqlclient via pip now:
6666
$ pip install mysqlclient
6767
```
6868

69+
### Customize build (POSIX)
70+
71+
mysqlclient uses `mysql_config` or `mariadb_config` by default for finding
72+
compiler/linker flags.
73+
74+
You can use `MYSQLCLIENT_CFLAGS` and `MYSQLCLIENT_LDFLAGS` environment
75+
variables to customize compiler/linker options.
76+
77+
```
78+
$ export MYSQLCLIENT_CFLAGS=`pkg-config mysqlclient --cflags`
79+
$ export MYSQLCLIENT_LDFLAGS=`pkg-config mysqlclient --libs`
80+
$ pip install mysqlclient
81+
```
82+
6983
### Documentation
7084

7185
Documentation is hosted on [Read The Docs](https://mysqlclient.readthedocs.io/)

0 commit comments

Comments
 (0)