@@ -13,39 +13,39 @@ Installing
13
13
14
14
Prerequisites:
15
15
16
- - Install `cython `
17
- - Download and build `libgraphqlparser `
16
+ - Install `` cython ` `
17
+ - Download and build `` libgraphqlparser ` `
18
18
19
19
20
20
Install using pip
21
21
22
- - set an env var `$GRAPHQL_HOME ` to libgraphqlparser dir
23
- - `LDFLAGS="-L$GRAPHQL_HOME" CFLAGS="-I$GRAPHQL_HOME/c -I$GRAPHQL_HOME" pip install graphqlparser `
22
+ - set an env var `` $GRAPHQL_HOME `` to the folder where libgraphqlparser is
23
+ - `` LDFLAGS="-L$GRAPHQL_HOME" CFLAGS="-I$GRAPHQL_HOME/c -I$GRAPHQL_HOME" pip install graphqlparser ` `
24
24
25
25
26
26
Building from source
27
27
--------------------
28
28
29
29
Needed to rebuild the generate cython files from the libgraphql AST
30
30
31
- - download submodules with `git checkout --recursive `
32
- - build libgraphql library in folder `./libgraphql ` (python2.7 required for building)
33
- (usually `pushd libgraphqlparser && cmake . && make && popd ` works)
34
- - generate source code with `python ast/build_ast.py `
31
+ - download submodules with `` git checkout --recursive ` `
32
+ - build libgraphql library in folder `` ./libgraphqlparser ` ` (python2.7 required for building)
33
+ (usually `` pushd libgraphqlparser && cmake . && make && popd ` ` works)
34
+ - generate source code with `` python ast/build_ast.py ` `
35
35
- you can now switch to python 3
36
- - install `cython `
37
- - run `LDFLAGS="-L./libgraphqlparser" CFLAGS="-Ilibgraphqlparser/c -Ilibgraphqlparser" python setup.py build_ext `
36
+ - install `` cython ` `
37
+ - run `` LDFLAGS="-L./libgraphqlparser" CFLAGS="-Ilibgraphqlparser/c -Ilibgraphqlparser" python setup.py build_ext ` `
38
38
39
39
To package with wheel:
40
- - install wheel
41
- - create wheelhouse `mkdir .wheelhouse `
42
- - build with `pip wheel --wheel-dir=.wheelhouse . `
40
+ - install wheel: `` pip install wheel ``
41
+ - create wheelhouse `` mkdir .wheelhouse ` `
42
+ - build with `` pip wheel --wheel-dir=.wheelhouse . ` `
43
43
44
44
45
45
Run
46
46
---
47
47
48
- Make sure `libgraphql ` is available to the loader in your ` LD_LIBRARY_PATH `
48
+ Make sure `` libgraphqlparser `` is available to the loader. You can add its base dir to `` LD_LIBRARY_PATH ``.
49
49
50
50
51
51
Known issues
0 commit comments