Skip to content

Cannot build 8.3.0 - Python script error #139

@paspro

Description

@paspro

When trying to build code_saturne 8.3.0 I experience an error from a Python script which checks the version of the code:

Traceback (most recent call last):
  File "/Users/panos/Development/code_saturne/release/automake-build/../python/setup.py", line 206, in <module>
    setup(name='code_saturne',
    ~~~~~^^^^^^^^^^^^^^^^^^^^^
          author='code_saturne dev team',
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<11 lines>...
          packages=find_packages(where=SRC_PATH, exclude=_cs_opts['exclude_dirs'])
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          )
          ^
  File "/opt/homebrew/lib/python3.13/site-packages/setuptools/__init__.py", line 117, in setup
    return distutils.core.setup(**attrs)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/opt/homebrew/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 148, in setup
    _setup_distribution = dist = klass(attrs)
                                 ~~~~~^^^^^^^
  File "/opt/homebrew/lib/python3.13/site-packages/setuptools/dist.py", line 330, in __init__
    self.metadata.version = self._normalize_version(self.metadata.version)
                            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.13/site-packages/setuptools/dist.py", line 366, in _normalize_version
    normalized = str(Version(version))
                     ~~~~~~~^^^^^^^^^
  File "/opt/homebrew/lib/python3.13/site-packages/packaging/version.py", line 202, in __init__
    raise InvalidVersion(f"Invalid version: {version!r}")
packaging.version.InvalidVersion: Invalid version: '8.3.0-patch'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions