Skip to content

Commit 5836ce9

Browse files
committed
README snippet
1 parent 5d6c5e9 commit 5836ce9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,29 @@ 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+
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+
To install either of these packages, use:
118+
119+
pip install dist/{{ package name }}
120+
121+
To create an "editable" install of createrepo_c, use:
122+
123+
python setup.py develop
124+
125+
Note: To recompile the libraries and binaries, you muse re-run this command.
126+
127+
105128
## Build RPM package
106129

107130
Modify createrepo_c.spec and run:

0 commit comments

Comments
 (0)