@@ -11,20 +11,25 @@ Still **EXPERIMENTAL**
11
11
Installing
12
12
----------
13
13
14
- Prerequisites:
14
+ Precompiled wheels are usually available on github https://github.com/elastic-coders/py-graphqlparser/releases/
15
15
16
- - Install ``cython ``
17
- - Download and build ``libgraphqlparser ``
16
+ Make sure you pick the right wheel for your platform and python version, then install them using pip::
17
+
18
+ pip install https://github.com/elastic-coders/py-graphqlparser/releases/download/v0.0.3/graphqlparser-0.0.3-cp27-none-linux_x86_64.whl
18
19
19
20
20
- Install using pip
21
+ Installing from source is a bit more complex. The main steps are
21
22
23
+ - Install ``cython ``
24
+ - Download and build ``libgraphqlparser ``
22
25
- 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 ``
26
+ - compile with::
24
27
28
+ LDFLAGS="-L$GRAPHQL_HOME" CFLAGS="-I$GRAPHQL_HOME/c -I$GRAPHQL_HOME" pip install graphqlparser
25
29
26
- Building from source
27
- --------------------
30
+
31
+ Building from source checkout
32
+ -----------------------------
28
33
29
34
Needed to rebuild the generate cython files from the libgraphql AST
30
35
@@ -34,9 +39,13 @@ Needed to rebuild the generate cython files from the libgraphql AST
34
39
- generate source code with ``python ast/build_ast.py ``
35
40
- you can now switch to python 3
36
41
- install ``cython ``
37
- - run ``LDFLAGS="-L./libgraphqlparser" CFLAGS="-Ilibgraphqlparser/c -Ilibgraphqlparser" python setup.py build_ext ``
42
+ - run::
43
+
44
+ LDFLAGS="-L./libgraphqlparser" CFLAGS="-Ilibgraphqlparser/c -Ilibgraphqlparser" python setup.py build_extx
45
+
46
+
47
+ To create a wheel distribution:
38
48
39
- To package with wheel:
40
49
- install wheel: ``pip install wheel ``
41
50
- create wheelhouse ``mkdir .wheelhouse ``
42
51
- build with ``pip wheel --wheel-dir=.wheelhouse . ``
@@ -60,5 +69,4 @@ Known issues
60
69
TODO
61
70
----
62
71
63
- - make wheels available on github
64
72
- build more wheel packages for linux 32 bit and other platforms
0 commit comments