Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Sebastien Awwad
This ties into what I've been working on to fix the package dependency conflict resolution problem for pip , actually: You may be able to use a tool I wrote to automatically extract requirements from setup.py, without installing (knowing that setup.py is

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Sebastien Awwad
- I'm not at all familiar with composer. - For DNF - I assume you mean CNF, logical expression format generally used in SAT solvers (not DNF as in I did-not-finish the blog post I'm working on on this yet). If the question is why backtracking rather than SAT solving, I start to get into that in

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Christopher Baines
On 03/06/16 14:19, Paul Moore wrote: > On 3 June 2016 at 13:20, Christopher Baines wrote: >> I'm trying to write a script to get information about a source >> distributions requirements (from the source distribution), but I'm not >> sure how to access the tests_require and

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/03/2016 09:58 AM, Daniel Holth wrote: > Here is how you can write setup_requires and test_requires to a file, > by adding a plugin to egg_info.writers in setuptools. FWIW, eggtestinfo is an 'egg_info.writers' plugin which dumps test-related

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Daniel Holth
Tell me what you know about SAT solvers, dnf and composer. On Fri, Jun 3, 2016, 12:28 Sebastien Awwad wrote: > This ties into what I've been working on to fix the package dependency > conflict resolution problem for pip > ,

Re: [Distutils] How to build python-packages depends on the output of other project

2016-06-03 Thread Chris Barker
First, what you have is not all that inelegant -- it is the way to do it :-) But there are a few options when you are wrapping a C/C++ lib for python: Do you need to access that lib from other extensions or only from the one extension? IF others, then you pretty much need to build a shared lib

Re: [Distutils] How to build python-packages depends on the output of other project

2016-06-03 Thread Daniel Holth
I have some less elegant suggestions. In my ed25519ll package I abuse the Extension class to compile some source code (that is not a Python extension). This works if the C package you are compiling is simple enough that it can be built with the limited Extension interface.

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Daniel Holth
Here is how you can write setup_requires and test_requires to a file, by adding a plugin to egg_info.writers in setuptools. https://gist.github.com/dholth/59e4c8a0c0d963b019d81e18bf0a89e3 On Fri, Jun 3, 2016 at 9:29 AM Paul Moore wrote: > On 3 June 2016 at 14:24,

Re: [Distutils] How to build python-packages depends on the output of other project

2016-06-03 Thread Ionel Cristian Mărieș via Distutils-SIG
On Fri, Jun 3, 2016 at 5:35 AM, Young Yang wrote: > my_install is a subclass of `from setuptools.command.install import > install` > ``` > class my_install(install): > def run(self): > # DO something I want. Such as compiling the code of project A and > copy the

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Paul Moore
On 3 June 2016 at 14:24, Christopher Baines wrote: > On 03/06/16 14:19, Paul Moore wrote: >> On 3 June 2016 at 13:20, Christopher Baines wrote: >>> I'm trying to write a script to get information about a source >>> distributions requirements (from the source

Re: [Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Paul Moore
On 3 June 2016 at 13:20, Christopher Baines wrote: > I'm trying to write a script to get information about a source > distributions requirements (from the source distribution), but I'm not > sure how to access the tests_require and setup_requires that can > sometimes be found in

Re: [Distutils] How to build python-packages depends on the output of other project

2016-06-03 Thread Young Yang
Hi, My current solution is like this I get the source code of project A. And use `cmdclass={"install": my_install},` in my setup function in setup.py. my_install is a subclass of `from setuptools.command.install import install` ``` class my_install(install): def run(self): # DO

[Distutils] Accessing tests_require and setup_requires from the setup.py

2016-06-03 Thread Christopher Baines
I'm trying to write a script to get information about a source distributions requirements (from the source distribution), but I'm not sure how to access the tests_require and setup_requires that can sometimes be found in the setup.py? Apologies if this is really simple, and I've just missed the

[Distutils] How to build python-packages depends on the output of other project

2016-06-03 Thread Young Yang
hi, I'm writing python-binding for project A. My python-binding depends on the compile output of project A(It is a .so file), and the project A is not installed in the system(so we can't find the .so files in the system libraries pathes) What's the elegant way to package my python-binding, so

Re: [Distutils] Alternate long_description formats, server-side

2016-06-03 Thread Donald Stufft
> On Jun 2, 2016, at 9:16 PM, Nick Timkovich wrote: > > I can definitely believe there are more important things to do, but some of > us aren't versed in the intricacies of what's up top and don't have the > familiarity to dive in. Us GitHub plebs are just raring to