Skip to content

Commit

Permalink
Remove distutils use from setup.py.
Browse files Browse the repository at this point in the history
Use logging and setuptools instead.
  • Loading branch information
bartoldeman committed Mar 7, 2024
1 parent 82c8516 commit c79ca19
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@
##
"""
This script can be used to install easybuild-framework, e.g. using:
easy_install --user .
or
python setup.py --prefix=$HOME/easybuild
python setup.py install --prefix=$HOME/easybuild
@author: Kenneth Hoste (Ghent University)
"""
import glob
import os
from distutils import log
from distutils.core import setup
import logging
from setuptools import setup

from easybuild.tools.version import VERSION

Expand All @@ -44,9 +42,10 @@
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()

log = logging.getLogger("EasyBuild")

# log levels: 0 = WARN (default), 1 = INFO, 2 = DEBUG
log.set_verbosity(1)
# log levels: NOTSET (default), DEBUG, INFO, WARNING, ERROR, CRITICAL
log.setLevel(logging.INFO)

log.info("Installing version %s (API version %s)" % (VERSION, API_VERSION))

Expand Down

0 comments on commit c79ca19

Please sign in to comment.