Skip to content
Snippets Groups Projects
Verified Commit 13cc60c1 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Drop usage of distutils

parent 60c71a0f
No related branches found
No related tags found
No related merge requests found
Pipeline #196718 failed
Version 6.1.3 (2025-03-19)
=====================================================
* Fix compatibility with Python 3.13 by dropping usage of distutils.
Version 6.1.2 (2024-02-10)
=====================================================
* Explicitly set nodeLinker config to fix compatibility with Yarn 4.x
* Explicitly set nodeLinker config to fix compatibility with Yarn 4.x
Version 6.1.1 (2024-02-09)
=====================================================
......
# -*- coding: utf-8 -*-
from distutils.spawn import find_executable
from shutil import which
import os
import sys
from django.conf import settings
......@@ -8,6 +8,6 @@ __all__ = ['NODE_MODULES_ROOT', 'YARN_PATH']
NODE_MODULES_ROOT = getattr(settings, 'NODE_MODULES_ROOT', os.path.abspath(os.path.dirname(__name__)))
default_yarn_path = find_executable('yarnpkg') or find_executable('yarn')
default_yarn_path = which('yarnpkg') or which('yarn')
YARN_PATH = getattr(settings, 'YARN_PATH', default_yarn_path)
from . import conf, shortcuts, exceptions
from distutils.spawn import find_executable
from shutil import which
import os
import subprocess
import sys
......@@ -16,7 +16,7 @@ class YarnAdapter(object):
def is_yarn_exists(self):
"""Check is bower exists"""
if shortcuts.is_executable(self._yarn_path)\
or find_executable(self._yarn_path):
or which(self._yarn_path):
return True
else:
return False
......
from setuptools import setup, find_packages
version = '6.1.2'
version = '6.1.3'
setup(
name='django-yarnpkg',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment