2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

updated current state & install instructions

This commit is contained in:
nginn 2015-12-30 17:41:39 +03:00
parent 994b336d22
commit 2ddceff369

View File

@ -7,12 +7,15 @@ and directory within it must be named as $(name)-$(version) <br>
<i>To prepare</i> your environment for building .rpm package do the following: <br>
1. install instruments: <br>
`sudo yum install epel-release rpmdevtools yum-utils` <br>
2. create directory hierarchy for rpm (this will create directory ~/rpmbuild with the subdirectories BUILD RPMS SOURCES SPECS SRPMS): <br>
2. install latest pip and wheel (you can also look at this [documentation](https://pip.pypa.io/en/stable/installing/)):<br>
`wget https://bootstrap.pypa.io/get-pip.py`<br>
`sudo python get-pip.py`<br>
3. create directory hierarchy for rpm (this will create directory ~/rpmbuild with the subdirectories BUILD RPMS SOURCES SPECS SRPMS): <br>
`rpmdev-setuptree` <br>
3. place `bench.spec` into ~/rpmbuild/SPECS <br>
4. place `bench-0.92.tar.gz` into ~/rpmbuild/SOURCES <br>
5. install all required for .rpm building dependencies: <br>
`yum-builddep ~/rpmbuild/SPECS/bench.spec`
4. place `bench.spec` into ~/rpmbuild/SPECS <br>
5. place `bench-0.92.tar.gz` into ~/rpmbuild/SOURCES <br>
6. install all required for .rpm building dependencies: <br>
`sudo yum-builddep ~/rpmbuild/SPECS/bench.spec`
<br>
<i>To build</i> .rpm package run: <br>
@ -22,11 +25,6 @@ The resulting .rpm will be in `~/rpmbuild/RPMS/` and .srpm in `~/rpmbuild/SRPMS`
<i>To install</i> .rpm package run: <br>
`sudo yum localinstall path/to/rpm/package` <br>
<br>
<i>Current state:</i> builds ok but resulting bench fails with the error: <br>
`Traceback (most recent call last):` <br>
`File "/usr/bin/bench", line 7, in <module>` <br>
`from bench.cli import cli` <br>
`ImportError: No module named bench.cli` <br>
Useful links:
[rpm packaging tutorial] (http://www.ibm.com/developerworks/library/l-rpm1/)