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

Replace deprecated distutils and pipes modules #352

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def get_description():
'tornado',
'terminado>=0.13.1',
'coloredlogs',
'requests'
'requests',
'looseversion'
]

EXTRAS_REQUIRE = {
Expand Down
10 changes: 6 additions & 4 deletions setupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,25 @@
See: https://github.com/jupyter/notebook/blob/master/setupbase.py
"""

import logging
import os
import os.path as osp
import pipes
import shlex
import shutil
import sys

from distutils import log
from distutils.core import Command
from setuptools import Command
from setuptools.command.develop import develop
from setuptools.command.sdist import sdist
from subprocess import check_call

log = logging.getLogger()

if sys.platform == 'win32':
from subprocess import list2cmdline
else:
def list2cmdline(cmd_list):
return ' '.join(map(pipes.quote, cmd_list))
return ' '.join(map(shlex.quote, cmd_list))


HERE = os.path.abspath(os.path.dirname(__file__))
Expand Down
3 changes: 2 additions & 1 deletion spyder_terminal/confpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
"""Spyder terminal configuration page."""

# Standard library imports
from distutils.version import LooseVersion
import os
import platform
import sys

from looseversion import LooseVersion

# Third party imports
from qtpy.QtWidgets import (QVBoxLayout, QGroupBox, QGridLayout, QButtonGroup,
QRadioButton, QWidget)
Expand Down