Re: Building RBTools 0.7.6 into a single-file exe for Windows

2016-09-23 Thread Daniel Kuecker
YES!  Thats a wonderful idea (the single shared install)!  Thanks for the
idea!  I think it will work for us!

--Daniel

On Fri, Sep 23, 2016 at 8:26 AM, Christian Hammond  wrote:

> Sorry, I don't have any pointers here. Tools like py2exe drastically
> changes the way Python projects execute, which can end up causing a large
> number of tricky to diagnose issues. Having done a lot of
> py2exe/pyinstaller work in the past, it's not a route I'd want to go again.
>
> While I'd accept reasonable patches for things RBTools is doing, it's
> important to note that some things simply will not work, and those are
> things we must ship with. Examples would be any commands that reference a
> shipped data file, or otherwise need to deal with something relative to a
> module path.
>
> I understand the desire to have a single .exe you can drop on development
> machines, but am not sold on this being the way to go. What a lot of
> companies do is have a single shared install of RBTools in some common
> directory on a file server, and have that directory added to the path. Some
> use a wrapper script to set the PYTHON_PATH and such for that. This gives
> you central management of RBTools, usage of the RBTools API, and wouldn't
> require the kinds of work that would be needed to get things in shape for
> tools like py2exe to work.
>
> Christian
>
> --
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Fri, Sep 23, 2016 at 6:22 AM, Daniel Kuecker 
> wrote:
>
>> Any pointers?
>>
>> On Thu, Sep 22, 2016 at 10:54 PM, john levin 
>> wrote:
>>
>>> I did.. and i was successful..
>>>
>>> On Sep 23, 2016 12:30 AM, "Daniel Kuecker"  wrote:
>>>
 Has anyone been successful building RBTools 0.7.6 into a single-file
 exe for distribution on windows?

 I'm trying to wrap rbt post functionality into an exe file and both
 py2exe and pyinstaller built exes are having issues when pkg_resources
 tries to resolve the rbtools package.

 The exe builds fine, but when I run it, I get a
 "pkg_resources.distributionnotfound: the 'rbtools' distribution was
 not found and is required by the application" error.

 I've tried listing rbtools as hidden imports and importing an egg
 (although the egg import was never successful), to no avail.

 Thanks in advance!

 --Daniel




 --
 Supercharge your Review Board with Power Pack:
 https://www.reviewboard.org/powerpack/
 Want us to host Review Board for you? Check out RBCommons:
 https://rbcommons.com/
 Happy user? Let us know! https://www.reviewboard.org/users/
 ---
 You received this message because you are subscribed to the Google
 Groups "reviewboard" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to reviewboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> Supercharge your Review Board with Power Pack:
>>> https://www.reviewboard.org/powerpack/
>>> Want us to host Review Board for you? Check out RBCommons:
>>> https://rbcommons.com/
>>> Happy user? Let us know! https://www.reviewboard.org/users/
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "reviewboard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to reviewboard+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> Supercharge your Review Board with Power Pack:
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons:
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to reviewboard+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! 

Re: Building RBTools 0.7.6 into a single-file exe for Windows

2016-09-23 Thread Daniel Kuecker
Hey Christian,

Our clients would rather not install an app on their development machines.
We have been using an older version of RBTools, that we made a custom
post-review for, and built an exe.  The exe is dropped on the client
machine (among many other things) as a tool via a scripted setup script we
run and is called from other build-related scripts.

I only really need post and patch functionality and we hard-code the RB url.

Thanks for the response!!!

--Daniel


On Fri, Sep 23, 2016 at 12:05 AM, Christian Hammond <
christ...@beanbaginc.com> wrote:

> Out of curiosity, why not use the RBTools installer we already provide?
>
> The single .exe route will have limitations. I've done a lot of
> py2exe/pyinstaller work in the past for other projects, and it's not a
> route I'd recommend if you can avoid it, at least for more complex projects.
>
> Christian
>
> --
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>
> On Thu, Sep 22, 2016 at 11:59 AM, Daniel Kuecker 
> wrote:
>
>> Has anyone been successful building RBTools 0.7.6 into a single-file exe
>> for distribution on windows?
>>
>> I'm trying to wrap rbt post functionality into an exe file and both
>> py2exe and pyinstaller built exes are having issues when pkg_resources
>> tries to resolve the rbtools package.
>>
>> The exe builds fine, but when I run it, I get a
>> "pkg_resources.distributionnotfound: the 'rbtools' distribution was not
>> found and is required by the application" error.
>>
>> I've tried listing rbtools as hidden imports and importing an egg
>> (although the egg import was never successful), to no avail.
>>
>> Thanks in advance!
>>
>> --Daniel
>>
>>
>>
>>
>> --
>> Supercharge your Review Board with Power Pack:
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons:
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to reviewboard+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building RBTools 0.7.6 into a single-file exe for Windows

2016-09-23 Thread Christian Hammond
Sorry, I don't have any pointers here. Tools like py2exe drastically
changes the way Python projects execute, which can end up causing a large
number of tricky to diagnose issues. Having done a lot of
py2exe/pyinstaller work in the past, it's not a route I'd want to go again.

While I'd accept reasonable patches for things RBTools is doing, it's
important to note that some things simply will not work, and those are
things we must ship with. Examples would be any commands that reference a
shipped data file, or otherwise need to deal with something relative to a
module path.

I understand the desire to have a single .exe you can drop on development
machines, but am not sold on this being the way to go. What a lot of
companies do is have a single shared install of RBTools in some common
directory on a file server, and have that directory added to the path. Some
use a wrapper script to set the PYTHON_PATH and such for that. This gives
you central management of RBTools, usage of the RBTools API, and wouldn't
require the kinds of work that would be needed to get things in shape for
tools like py2exe to work.

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Fri, Sep 23, 2016 at 6:22 AM, Daniel Kuecker  wrote:

> Any pointers?
>
> On Thu, Sep 22, 2016 at 10:54 PM, john levin 
> wrote:
>
>> I did.. and i was successful..
>>
>> On Sep 23, 2016 12:30 AM, "Daniel Kuecker"  wrote:
>>
>>> Has anyone been successful building RBTools 0.7.6 into a single-file exe
>>> for distribution on windows?
>>>
>>> I'm trying to wrap rbt post functionality into an exe file and both
>>> py2exe and pyinstaller built exes are having issues when pkg_resources
>>> tries to resolve the rbtools package.
>>>
>>> The exe builds fine, but when I run it, I get a
>>> "pkg_resources.distributionnotfound: the 'rbtools' distribution was not
>>> found and is required by the application" error.
>>>
>>> I've tried listing rbtools as hidden imports and importing an egg
>>> (although the egg import was never successful), to no avail.
>>>
>>> Thanks in advance!
>>>
>>> --Daniel
>>>
>>>
>>>
>>>
>>> --
>>> Supercharge your Review Board with Power Pack:
>>> https://www.reviewboard.org/powerpack/
>>> Want us to host Review Board for you? Check out RBCommons:
>>> https://rbcommons.com/
>>> Happy user? Let us know! https://www.reviewboard.org/users/
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "reviewboard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to reviewboard+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Supercharge your Review Board with Power Pack:
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons:
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to reviewboard+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building RBTools 0.7.6 into a single-file exe for Windows

2016-09-23 Thread Daniel Kuecker
Any pointers?

On Thu, Sep 22, 2016 at 10:54 PM, john levin  wrote:

> I did.. and i was successful..
>
> On Sep 23, 2016 12:30 AM, "Daniel Kuecker"  wrote:
>
>> Has anyone been successful building RBTools 0.7.6 into a single-file exe
>> for distribution on windows?
>>
>> I'm trying to wrap rbt post functionality into an exe file and both
>> py2exe and pyinstaller built exes are having issues when pkg_resources
>> tries to resolve the rbtools package.
>>
>> The exe builds fine, but when I run it, I get a
>> "pkg_resources.distributionnotfound: the 'rbtools' distribution was not
>> found and is required by the application" error.
>>
>> I've tried listing rbtools as hidden imports and importing an egg
>> (although the egg import was never successful), to no avail.
>>
>> Thanks in advance!
>>
>> --Daniel
>>
>>
>>
>>
>> --
>> Supercharge your Review Board with Power Pack:
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons:
>> https://rbcommons.com/
>> Happy user? Let us know! https://www.reviewboard.org/users/
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to reviewboard+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building RBTools 0.7.6 into a single-file exe for Windows

2016-09-22 Thread Christian Hammond
Out of curiosity, why not use the RBTools installer we already provide?

The single .exe route will have limitations. I've done a lot of
py2exe/pyinstaller work in the past for other projects, and it's not a
route I'd recommend if you can avoid it, at least for more complex projects.

Christian

-- 
Christian Hammond
President/CEO of Beanbag 
Makers of Review Board 

On Thu, Sep 22, 2016 at 11:59 AM, Daniel Kuecker  wrote:

> Has anyone been successful building RBTools 0.7.6 into a single-file exe
> for distribution on windows?
>
> I'm trying to wrap rbt post functionality into an exe file and both py2exe
> and pyinstaller built exes are having issues when pkg_resources tries to
> resolve the rbtools package.
>
> The exe builds fine, but when I run it, I get a 
> "pkg_resources.distributionnotfound:
> the 'rbtools' distribution was not found and is required by the
> application" error.
>
> I've tried listing rbtools as hidden imports and importing an egg
> (although the egg import was never successful), to no avail.
>
> Thanks in advance!
>
> --Daniel
>
>
>
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Building RBTools 0.7.6 into a single-file exe for Windows

2016-09-22 Thread john levin
I did.. and i was successful..

On Sep 23, 2016 12:30 AM, "Daniel Kuecker"  wrote:

> Has anyone been successful building RBTools 0.7.6 into a single-file exe
> for distribution on windows?
>
> I'm trying to wrap rbt post functionality into an exe file and both py2exe
> and pyinstaller built exes are having issues when pkg_resources tries to
> resolve the rbtools package.
>
> The exe builds fine, but when I run it, I get a 
> "pkg_resources.distributionnotfound:
> the 'rbtools' distribution was not found and is required by the
> application" error.
>
> I've tried listing rbtools as hidden imports and importing an egg
> (although the egg import was never successful), to no avail.
>
> Thanks in advance!
>
> --Daniel
>
>
>
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.