annotate README.txt @ 0:6873638f82ce default tip

initial commit
author Jeff Hammel <k0scist@gmail.com>
date Mon, 06 Feb 2017 03:40:08 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 # pypedream
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 python + other packaging works
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 ______
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6 |______|
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
7 | |
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
8 |____|
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
9
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
10
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
11
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
12 ## What's inside
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
13
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
14 This is a toolbox for dealing with packages as it stands. Install
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
15 this your usual way, e.g.: `python setup.py develop`
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
16
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
17 ## Console scripts
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
18
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
19 Invoke with `--help` for usage info.
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
20
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
21 - `py2rpm`: script for fetching an python package from http://pypi.python.org/
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
22 and its dependencies using `pip` and converting to RPMs using
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
23 `python setup.py bdist_rpm`. Requires the `pip` and `rpmbuild` on
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
24 your system.
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
25
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
26 - `py2centos`: the problem with using `bdist_rpm` is that it converts
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
27 the python package to an RPM as appropriate for your current
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
28 environment. What is desired is a package for, at current, the
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
29 Centos 6 operating system. In order to surmount these difficulties,
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
30 Docker is used by `py2centos` to provision a Centos 6 container,
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
31 copy the `py2rpm.py` python script into the container, and set up an
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
32 execution endpoint that will generate the Centos RPMs in an output
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
33 directory.
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
34
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
35
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
36 ## fpm
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
37
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
38 `fpm` is a ruby package manipulation tool. You can use `py2rpm` with
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
39 the `--fpm` option, if you have the `fpm` command line program on your
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
40 path, to do the conversion with this tool. The advantage is that the
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
41 package dependencies are noted correctly. By default, an additional
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
42 namespace of `python-` is prepended to the package name. This is
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
43 probably desirable.
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
44
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
45
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
46 ## RPM
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
47
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
48 Querying rpm dependencies:
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
49
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
50 # rpm -qpR *.rpm
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
51
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
52 Listing files in an rpm:
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
53
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
54 # rpm -qlp *.rpm
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
55
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
56
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
57 ## Links
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
58
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
59 - https://github.com/jordansissel/fpm
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
60 - https://github.com/jordansissel/fpm/wiki/ConvertingPython
6873638f82ce initial commit
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
61 - http://www.alexhudson.com/2013/05/24/packaging-a-virtualenv-really-not-relocatable/