Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Is Python 2.7 Supported? #62

@MarkRoddy

Description

@MarkRoddy

Per the README:

Requires Docker and Python 2.7 or 3.5+.

However, after a pip install on Python 2.7 (system Python via Ubuntu 16.04,):

$ docker-make --list
Traceback (most recent call last):
  File "/usr/local/bin/docker-make", line 7, in <module>
    from dockermake.__main__ import main
  File "/usr/local/lib/python2.7/dist-packages/dockermake/__main__.py", line 23, in <module>
    from . import cli, utils, staging
  File "/usr/local/lib/python2.7/dist-packages/dockermake/utils.py", line 24, in <module>
    from . import errors
  File "/usr/local/lib/python2.7/dist-packages/dockermake/errors.py", line 90
    print(dockerfile, file=dff)
                          ^
SyntaxError: invalid syntax

I noticed that metafiles (setup.py, codeship-*.yml, etc) only reference Python 3.x, and I wanted to confirm that 2.7 is officially supported before digging deeper into this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions