mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 00:14:41 +01:00
put tempfile
import in separate try statement
because install shouldn't fail just because someone doesn't have setuptools...
This commit is contained in:
parent
357d862132
commit
1e1c01caae
1 changed files with 5 additions and 0 deletions
5
setup.py
5
setup.py
|
@ -7,8 +7,13 @@ from __future__ import print_function, unicode_literals
|
|||
import os
|
||||
import sys
|
||||
import json
|
||||
|
||||
try:
|
||||
from tempfile import TemporaryDirectory
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
try:
|
||||
from setuptools import setup
|
||||
from setuptools.command.sdist import sdist
|
||||
from setuptools.command.install import install
|
||||
|
|
Loading…
Add table
Reference in a new issue