Re: [Scons-dev] Py 3.5 support.. How important is it?

2021-01-12 Thread Rob Boehne
We may not be the most typical users, but here at Datalogics we went from 2.7 
directly to 3.6 because we did it late, and F-strings.  So we’ve never had  
Python 3 <= 3.5 in production.

From: Scons-dev  on behalf of Bill Deegan 

Reply-To: SCons developer list 
Date: Monday, January 11, 2021 at 10:07 PM
To: SCons users mailing list , SCons developer list 

Subject: [Scons-dev] Py 3.5 support.. How important is it?

Greetings,

Since Py 3.5 is EOL'd we're considering moving the floor version for SCons to 
3.6.

Please comment if 3.5 is still important to you and why

Thanks,
Bill
SCons Project Co-manager
___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


Re: [Scons-dev] Hg vs Git

2016-05-09 Thread Rob Boehne
For me, scons is the ONLY project I work on that uses Mercurial, and
having to translate each and every command is a real pain.
I¹ve also NOT contributed back many changes I¹ve made to get Python to
build properly on old UNIX systems, primarily because it was using Hg.

I doubt I¹m alone in this, and I¹m certain it¹s a lot easier to find a
competent developer who knows Git but has never used Mercurial than the
other way around.  This is an extra effort for most developers, and that
extra effort will get more common, and more painful as the years go by.
IMHO switching to Git is a clear win.


Robert Boehne

On 5/9/16, 7:42 AM, "Scons-dev on behalf of Russel Winder"
 wrote:

>There was a flurry of activity about potentially switching from
>Mercurial to Git at the beginning of the year. The topic seems to have
>died down. Can I assume that this means Mercurial won the debate and
>that we will not be switching from Mercurial to Git ­ even though
>BitBucket is now a Git repository repository.
>-- 
>Russel.
>==
>===
>Dr Russel Winder  t: +44 20 7585 2200   voip:
>sip:russel.win...@ekiga.net
>41 Buckmaster Roadm: +44 7770 465 077   xmpp: rus...@winder.org.uk
>London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
>

___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev


[Scons-dev] Java test for sources in two directories

2016-04-30 Thread Rob Boehne
Scons dev,

Apparently the attachment was scrubbed, so here is the test case I've called 
"Compile2Dirs.py" inline below.

#!/usr/bin/env python
#
# __COPYRIGHT__
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"

"""
Real world test for compiling dependent classes from different directories.
"""

import os

import TestSCons

test = TestSCons.TestSCons()

where_javac, java_version = test.java_where_javac()
where_javah = test.java_where_javah()
where_java_include=test.java_where_includes()


test.subdir(['src'],
['src', 'Source'],
['src', 'Source', 'Interface'],
['src', 'gen'],
['src', 'gen', 'mymod'],
['src', 'gen', 'mymod', 'java'],
['src', 'build'],
['src', 'build', 'classes'])

test.write(['SConstruct'], """\
import os,sys
env=Environment(tools = ['default', 'javac'],
JAVAC = r'%(where_javac)s')
Export('env')
env.PrependENVPath('PATH',os.environ.get('PATH',[]))

Java('build/classes', [env.Dir('src/gen/mymod/java'), 
env.Dir('src/Source/Interface')])

""" % locals())

test.write(['src', 'gen', 'mymod', 'java', 'LibraryFlags.java'], """\
package com.mycompany.PROD;

public enum LibraryFlags {
  @com.mycompany.metadata.ConstantName("IgnoreDefaultDirectories")   
IGNORE_DEFAULT_DIRECTORIES(1),
  @com.mycompany.metadata.ConstantName("CheckSubFonts")   CHECK_SUB_FONTS(4),
  @com.mycompany.metadata.ConstantName("InitEdit")   INIT_EDIT(32);

  final int someValue() {
return someValue;
  }

  static LibraryFlags someToEnum(int someValue) {
LibraryFlags[] someValues = LibraryFlags.class.getEnumConstants();
if (someValue < someValues.length && someValue >= 0 && 
someValues[someValue].someValue == someValue)
  return someValues[someValue];
for (LibraryFlags someEnum : someValues)
  if (someEnum.someValue == someValue)
return someEnum;
throw new IllegalArgumentException("No enum " + LibraryFlags.class + " with 
value " + someValue);
  }

  private LibraryFlags() {
  this.someValue = 75;
  }

  private LibraryFlags(int someValue) {
this.someValue = someValue;
  }

  private LibraryFlags(LibraryFlags someEnum) {
this.someValue = someEnum.someValue;
  }

  private final int someValue;

}
""")

test.write(['src', 'Source', 'Interface', 'ConstantName.java'], """\
package com.mycompany.metadata;

import java.lang.annotation.*;

/**
 * Indicates the canonical name of a constant or enum value
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ConstantName {
String value();
}
""")

test.run(arguments = '.')

test.must_exist(['src', 'build', 'classes', 'com', 'mycompany', 'metadata', 
'ConstantName.class'])
test.must_exist(['src', 'build', 'classes', 'com', 'mycompany', 'PROD', 
'LibraryFlags.class'])

test.must_exist(['src', 'gen', 'mymod', 'java', 'LibraryFlags.java'])
test.must_exist(['src', 'Source', 'Interface', 'ConstantName.java'])

test.up_to_date(arguments = '.')

test.pass_test()

# Local Variables:
# tab-width:4
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=4 shiftwidth=4:

___
Scons-dev mailing list
Scons-dev@scons.org
https://pairlist2.pair.net/mailman/listinfo/scons-dev