Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: Brian Dolbec <dolsen@g.o>
Cc: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH 5/6] Install Python modules using setup.py
Date: Fri, 22 Aug 2014 22:55:25
Message-Id: 20140823005506.7b5c1e19@pomiot.lan
In Reply to: Re: [gentoo-portage-dev] [PATCH 5/6] Install Python modules using setup.py by Brian Dolbec
1 Dnia 2014-08-22, o godz. 15:30:15
2 Brian Dolbec <dolsen@g.o> napisał(a):
3
4 > On Thu, 21 Aug 2014 22:19:43 +0200
5 > Michał Górny <mgorny@g.o> wrote:
6 >
7 > > ---
8 > > .gitignore | 1 +
9 > > Makefile | 215 --------------------
10 > > doc/Makefile | 11 -
11 > > pym/portage/const.py | 4 +-
12 > > setup.py | 557
13 > > +++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed,
14 > > 560 insertions(+), 228 deletions(-) delete mode 100644 Makefile
15 > > delete mode 100644 doc/Makefile
16 > > create mode 100755 setup.py
17 >
18 >
19 >
20 >
21 > > diff --git a/setup.py b/setup.py new file mode 100755
22 > > index 0000000..bd6e506 --- /dev/null
23 > > +++ b/setup.py
24 > > @@ -0,0 +1,557 @@
25 > > +#!/usr/bin/env python
26 > > +# vim:fileencoding=utf-8
27 > > +# (c) 2010 Michał Górny <mgorny@g.o>
28 > > +# Released under the terms of the 2-clause BSD license.
29 > > +
30 > > +from distutils.core import setup, Command
31 > > +from distutils.command.build_scripts import build_scripts
32 > > +from distutils.command.clean import clean
33 > > +from distutils.command.install import install
34 > > +from distutils.command.install_data import install_data
35 > > +from distutils.command.install_lib import install_lib
36 > > +from distutils.command.install_scripts import install_scripts
37 > > +from distutils.dir_util import remove_tree
38 > > +from distutils.util import change_root, subst_vars
39 > > +
40 > > +import codecs, collections, glob, os, os.path, re, subprocess, sys
41 > > +
42 > > +# TODO:
43 > > +# - smarter rebuilds of docs w/ 'install_docbook' and
44 > > 'install_epydoc'. +
45 > > +package_name = 'portage'
46 > > +package_version = '2.2.12'
47 >
48 > Why hard code the version? can you not import it? or did you add this
49 > to the sed list in mkrelease.sh?
50
51 Left it in my todo and forgot about it. Which also makes me think that
52 we may want to try to get 'setup.py sdist' working as well, and rethink
53 how much we need mkrelease.sh afterwards.
54
55 --
56 Best regards,
57 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature