Skip to content

Commit 05f424e

Browse files
committed
README snippet
1 parent 5d6c5e9 commit 05f424e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,31 @@ cause degradation of performance.
102102

103103
Without git revision specified HEAD is used.
104104

105+
## Build Python package
106+
107+
To create a binary "wheel" distribution, use:
108+
109+
python setup.py bdist_wheel
110+
111+
To create a source distribution, use:
112+
113+
python setup.py sdist
114+
115+
Installing source distributions require the installer of the package to have all of the build dependencies installed on their system, since they compile the code during installation. Binary distributions are pre-compiled, but they are likely not portable between substantially different systems, e.g. Fedora and Ubuntu.
116+
117+
If you install a source distribution with an older version of Pip you may need the ```scikit-build``` Python package installed.
118+
119+
To install either of these packages, use:
120+
121+
pip install dist/{{ package name }}
122+
123+
To create an "editable" install of createrepo_c, use:
124+
125+
python setup.py develop
126+
127+
Note: To recompile the libraries and binaries, you muse re-run this command.
128+
129+
105130
## Build RPM package
106131

107132
Modify createrepo_c.spec and run:

0 commit comments

Comments
 (0)