magic icon indicating copy to clipboard operation
magic copied to clipboard

does not build if python3 less-than 3.6 (e.g. python3.5): SyntaxError: invalid syntax

Open sto6 opened this issue 1 year ago • 5 comments

The usage of f-string requires python3.6. If the found python3 is 3.5 the build fails. My example happens to be on a centos-7, where python3.6 is available (installed) but /usr/bin/python3 is python3.5 due to the requirements of other system on the host.

Is it true: python3.6 (apparently) is now a requirement of the BUILD; but only the BUILD and still no python is required at runtime??

(See also #265 @donn.)

--- making header file database/database.h
./scripts/makedbh database/database.h.in database/database.h
  File "./scripts/makedbh", line 16
    f"Bad regular expression in {sys.argv[0]}: Cannot generate database/database.h!",
                                                                                   ^
SyntaxError: invalid syntax
make[1]: *** [Makefile:48: database/database.h] Error 1

sto6 avatar Oct 28 '23 16:10 sto6

@sto6 : Donn did that. I never use f-strings.

RTimothyEdwards avatar Oct 28 '23 16:10 RTimothyEdwards

@sto6 : I just modified it so that it will be compatible with any Python-3 revision.

RTimothyEdwards avatar Oct 28 '23 16:10 RTimothyEdwards

Sorry about that.

That said, every Python version before 3.8 is EOL: https://devguide.python.org/versions/

donn avatar Oct 28 '23 18:10 donn

Confirmed, thanks. Please describe python3 dependency in INSTALL and: http://opencircuitdesign.com/magic/install.html

sto6 avatar Oct 28 '23 19:10 sto6

While you're there, remove 'csh'/'tcsh' (no longer needed)

donn avatar Oct 28 '23 23:10 donn