Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update python code #5428

Open
davidpanderson opened this issue Nov 17, 2023 · 5 comments · May be fixed by #5433
Open

update python code #5428

davidpanderson opened this issue Nov 17, 2023 · 5 comments · May be fixed by #5433

Comments

@davidpanderson
Copy link
Contributor

Need to rewrite this to use current python library:

python setup.py build --build-base=../py
/home/boincadm/boinc/py/setup.py:3: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.core import setup
Traceback (most recent call last):
File "/home/boincadm/boinc/py/setup.py", line 3, in
from distutils.core import setup
ModuleNotFoundError: No module named 'distutils.core'

@Delizald
Copy link
Contributor

Delizald commented Nov 21, 2023

I'll try this one

@Delizald
Copy link
Contributor

So basically change:

#! /usr/bin/env python

from setuptools import setup

setup(name = 'Boinc',
      version = '@PACKAGE_VERSION@',
      description = 'Python API for BOINC',
      url = 'http://boinc.berkeley.edu',
      packages = ['Boinc'],
      py_modules = ['boinc_path_config']
     )

workflows\linux-package.yml:

  • name: Install dependencies
    run: |
    apt-get -qq update
    apt-get install -y make build-essential m4 pkg-config autoconf libtool git python3 setuptools curl zip unzip tar bison p7zip-full libx11-dev libxft-dev libxext-dev libdbus-1-dev libxi-dev libxtst-dev libxrandr-dev libnotify-dev

@AenBleidd
Copy link
Member

@Delizald, could you please provide a PR with this solution to test the fix?
Thank you in advance

@Delizald Delizald linked a pull request Nov 22, 2023 that will close this issue
@Delizald
Copy link
Contributor

@Delizald, could you please provide a PR with this solution to test the fix? Thank you in advance

Created #5433 for this

@Delizald
Copy link
Contributor

Looks like there's more distutil references
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

Successfully merging a pull request may close this issue.

3 participants