paver build does not support --build-base/-b #84

Closed
nicfit opened this Issue Nov 15, 2012 · 7 comments

Projects

None yet

2 participants

@nicfit
nicfit commented Nov 15, 2012

When installing my paver project on gentoo the command 'python setup.py build -b dir' is used to build the code. I'm using the generated setup.py and minilib. Paver does not recognize -b and the build fails. Can this value be parsed and passed on to setuptools?

@nicfit
nicfit commented Nov 15, 2012

n/m, my bad.

@nicfit nicfit closed this Nov 15, 2012
@Almad Almad was assigned Nov 15, 2012
@Almad
Member
Almad commented Nov 15, 2012

May I ask what was the problem?

@nicfit
nicfit commented Nov 15, 2012

Well, I'm not quite sure yet whether the problem is really solved in that I'm not sure if the -b and it's value are passed to setuptools yet. What I did notice though is that I had defined a 'build' task in my pavement.py because I needed some additional @needs around it (including the setuptools.command.build_py, to get the actual job done). What I was missing was a @consume_args. Adding that allowed the build to happen without complaining about -b not being a valid argument, but I'm not sure if it is being honored by setuptools.

Gentoo uses this option to support parallel installs of packages in multiple versions of python (2.7 and 3.3, for example).

@Almad
Member
Almad commented Nov 15, 2012

Yes, there are some hairy edges arount options.

What you really might need si @share_with decorator...?

@nicfit nicfit reopened this Nov 15, 2012
@nicfit
nicfit commented Nov 15, 2012

Thanks, I will look into that decorator. I've reopened the issue, since you've assigned it a milestone.

@nicfit
nicfit commented Nov 30, 2012

Update: I found that setuptools.command.build_py was not liking the -b argument, and my addition of consume_args had no affect. But, changing my @needs to setuptools.command.build instead accepts -b and the option works as expected. So, unless build_by is supposed to accept a -b argument than this bug can be closed, it is for me. Thanks.

@Almad
Member
Almad commented Dec 2, 2012

Thanks for the research!

@Almad Almad closed this Dec 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment