diff options
author | Ralph Bean <rbean@redhat.com> | 2015-11-16 17:28:44 +0300 |
---|---|---|
committer | Ralph Bean <rbean@redhat.com> | 2015-11-16 17:28:44 +0300 |
commit | a71a4441ab9ec864e23d55f7fbc3c7137414ca7f (patch) | |
tree | bec724498503fab06bbb22b1ace07ab64c2157be /README.md | |
parent | a416082799a1527d74df44777f11bba25489f623 (diff) |
README notes on Python3.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -71,6 +71,17 @@ where the path is path to your build of drpm library. cmake -DDRPM_PATH="/home/tmlcoch/git/drpm" .. && make +## Building for a different Python version + +By default, cmake should find the default version of python on your system +(say, Python 2), but if you want to build for Python 3 you need to specify +parameters like the following: + + cmake \ + -DPYTHON_LIBRARY=/usr/lib64/libpython3.4m.so \ + -DPYTHON_INCLUDE_DIR=/usr/include/python3.4m \ + -D PYTHON_EXECUTABLE=/usr/bin/python3 . + ## Build tarball utils/make_tarball.sh [git revision] @@ -105,6 +116,10 @@ Note: The C tests have to be builded by ``make tests``)! PYTHONPATH=`readlink -f ./build/src/python/` nosetests -s tests/python/tests/ +Or, for an alternative python version, specify the appropriate nosetests executable: + + PYTHONPATH=`readlink -f ./build/src/python/` nosetests-3.4 -s tests/python/tests/ + ### Links [Bugzilla](https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=MODIFIED&bug_status=VERIFIED&component=createrepo_c&query_format=advanced) |