Skip to content

Commit c018c70

Browse files
committed
README snippet
1 parent 5d6c5e9 commit c018c70

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+
Note: if you are building a bdist or installing the sdist on a system with an older version of Pip, you may need to install the ```scikit-build``` Python package first.
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)