Include the Python package installation & tests in the extension Makefil
This commit is contained in:
parent
c603c487c9
commit
845d56a091
@ -65,18 +65,15 @@ the extension) with `_cdb_`.
|
||||
|
||||
## Testing
|
||||
|
||||
Running the Python tests:
|
||||
Running just the Python tests:
|
||||
|
||||
```
|
||||
cd python/crankdown
|
||||
nosetests test
|
||||
(cd python/crankdown && nosetests test)
|
||||
```
|
||||
|
||||
Installing the Python package and running the PostgreSQL tests:
|
||||
Installing the Extension & Python package and running
|
||||
the Python & PostgreSQL tests:
|
||||
|
||||
```
|
||||
sudo pip install python/crankdown --upgrade
|
||||
cd pg
|
||||
sudo make install
|
||||
PGUSER=postgres make installcheck
|
||||
(cd pg && sudo make install && PGUSER=postgres make installcheck)
|
||||
```
|
||||
|
10
DEPLOYING.md
10
DEPLOYING.md
@ -9,13 +9,15 @@
|
||||
Deployment to db servers
|
||||
|
||||
```
|
||||
# Install python module
|
||||
sudo pip install python/crankshaft --upgrade
|
||||
|
||||
# Install extension
|
||||
(cd pg && sudo PGUSER=postgres make all install)
|
||||
```
|
||||
|
||||
Installing only the Python package:
|
||||
|
||||
```
|
||||
sudo pip install python/crankshaft --upgrade
|
||||
```
|
||||
|
||||
Caveat: note that `pip install ./crankshaft` will install
|
||||
from local files, but `pip install crankshaft` will not.
|
||||
|
||||
|
12
pg/Makefile
12
pg/Makefile
@ -28,3 +28,15 @@ REGRESS_OPTS = --inputdir='$(TEST_DIR)' --outputdir='$(TEST_DIR)'
|
||||
PG_CONFIG = pg_config
|
||||
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
||||
include $(PGXS)
|
||||
|
||||
# Install the Python package
|
||||
install_py_package:
|
||||
pip install ../python/crankshaft --upgrade
|
||||
|
||||
install: install_py_package
|
||||
|
||||
# Run the Python tests
|
||||
test_py_package:
|
||||
(cd ../python/crankshaft && nosetests test)
|
||||
|
||||
installcheck: test_py_package
|
||||
|
Loading…
Reference in New Issue
Block a user