Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2015-11-16 17:28:44 +0300
committerRalph Bean <rbean@redhat.com>2015-11-16 17:28:44 +0300
commita71a4441ab9ec864e23d55f7fbc3c7137414ca7f (patch)
treebec724498503fab06bbb22b1ace07ab64c2157be /README.md
parenta416082799a1527d74df44777f11bba25489f623 (diff)
README notes on Python3.
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/README.md b/README.md
index ff25243..6a1e247 100644
--- a/README.md
+++ b/README.md
@@ -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)