Re: [Scons-dev] Contribution to SCons development.

2014-12-06 Thread Shreedhar Manek
I change the integer the equivalent string in chmod.py (eg. 0444 to S_IRWXU and S_IRWXG and S_IRWXO) but there is problem ahead into the program and the test fails at this point - Watch out, 0444 is not the same as S_IRWXU and S_IRWXG and S_IRWXO, which would be because of the ands.

Re: [Scons-dev] Contribution to SCons development.

2014-12-06 Thread Gary Oberbrunner
On Sat, Dec 6, 2014 at 4:35 AM, Shreedhar Manek shreedharma...@gmail.com wrote: I change the integer the equivalent string in chmod.py (eg. 0444 to S_IRWXU and S_IRWXG and S_IRWXO) but there is problem ahead into the program and the test fails at this point - Watch out, 0444 is not the

Re: [Scons-dev] Contribution to SCons development.

2014-12-06 Thread Shreedhar Manek
256 is octal 0400, so it looks like it's only getting the S_IRUSR part. And that's because I steered you wrong; these are bitmasks, so you have to use bitwise OR: S_IRUSR | S_IRGRP | S_IROTH This was it. Thanks! Should I replace *all *integers with their counterpart string? Or only select

Re: [Scons-dev] Contribution to SCons development.

2014-12-06 Thread Gary Oberbrunner
On Sat, Dec 6, 2014 at 9:37 AM, Shreedhar Manek shreedharma...@gmail.com wrote: 256 is octal 0400, so it looks like it's only getting the S_IRUSR part. And that's because I steered you wrong; these are bitmasks, so you have to use bitwise OR: S_IRUSR | S_IRGRP | S_IROTH This was it.

Re: [Scons-dev] Contribution to SCons development.

2014-12-06 Thread alexandre . feblot
I found one here: http://computer-programming-forum.com/56-python/46da865fb41a1dc3.htm Ansible worked on that as well: https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py (_symbolic_mode_to_octal, _apply_operation_to_mode, _get_octal_mode_from_symbolic_perms) Le 6

Re: [Scons-dev] Contribution to SCons development.

2014-12-06 Thread Gary Oberbrunner
On Sat, Dec 6, 2014 at 1:03 PM, alexandre.feb...@gmail.com wrote: I found one here: http://computer-programming-forum.com/56-python/46da865fb41a1dc3.htm Ansible worked on that as well: https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py (_symbolic_mode_to_octal,

Re: [Scons-dev] Contribution to SCons development.

2014-12-06 Thread Shreedhar Manek
On Sun, Dec 7, 2014 at 2:25 AM, Gary Oberbrunner ga...@oberbrunner.com wrote: On Sat, Dec 6, 2014 at 1:03 PM, alexandre.feb...@gmail.com wrote: I found one here: http://computer-programming-forum.com/56-python/46da865fb41a1dc3.htm Ansible worked on that as well:

Re: [Scons-dev] Contribution to SCons development.

2014-12-05 Thread Gary Oberbrunner
On Thu, Dec 4, 2014 at 4:39 PM, Shreedhar Manek shreedharma...@gmail.com wrote: I need help with adapting tests. Hi! I change the integer the equivalent string in chmod.py (eg. 0444 to S_IRWXU and S_IRWXG and S_IRWXO) but there is problem ahead into the program and the test fails at this

Re: [Scons-dev] Contribution to SCons development.

2014-12-04 Thread Shreedhar Manek
I need help with adapting tests. I change the integer the equivalent string in chmod.py (eg. 0444 to S_IRWXU and S_IRWXG and S_IRWXO) but there is problem ahead into the program and the test fails at this point - s = S_IMODE(os.stat(test.workpath('f1'))[ST_MODE]) test.fail_test(s != 0444) What

Re: [Scons-dev] Contribution to SCons development.

2014-11-18 Thread Shreedhar Manek
From the description - The Chmod action requires a numeric for the mode. For a long time now the chmod command has processed string modes so the user does not have to remember or look up the numeric values. The Chmod action should allow forthe string mode specification. The Chmod action referred

Re: [Scons-dev] Contribution to SCons development.

2014-11-18 Thread Bill Deegan
You may just need to import the constants from python modules to be available..? On Tue, Nov 18, 2014 at 4:08 PM, Shreedhar Manek shreedharma...@gmail.com wrote: From the description - The Chmod action requires a numeric for the mode. For a long time now the chmod command has processed

Re: [Scons-dev] Contribution to SCons development.

2014-11-17 Thread Shreedhar Manek
, Nov 15, 2014 at 12:03 PM, Shreedhar Manek sm123ro...@gmail.com wrote: Shreedhar Manek -- Forwarded message -- From: Dirk Bächle tshor...@gmx.de Date: Sat, Nov 15, 2014 at 9:01 AM Subject: Re: [Scons-dev] Contribution to SCons development. To: scons-dev@scons.org Hi

Re: [Scons-dev] Contribution to SCons development.

2014-11-17 Thread Bill Deegan
-- From: Dirk Bächle tshor...@gmx.de Date: Sat, Nov 15, 2014 at 9:01 AM Subject: Re: [Scons-dev] Contribution to SCons development. To: scons-dev@scons.org Hi Shreedhar, On 15.11.2014 03:01, Shreedhar Manek wrote: Hi, I'm a college student new to open source. I came across SCons

[Scons-dev] Contribution to SCons development.

2014-11-14 Thread Shreedhar Manek
Hi, I'm a college student new to open source. I came across SCons when I was looking around for projects in Python and I find it very interesting. I'd like to contribute to its development. Any pointers as to where I could start? I'm fairly proficient in Python, and always open to learning :)