Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a050932

Browse filesBrowse files
committed
If setuptools is importable, don't force use of 'distribute'.
Allows use of post-merge setuptools 0.7.
1 parent 63ab179 commit a050932
Copy full SHA for a050932

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
import os
44
import sys
55

6-
from distribute_setup import use_setuptools
7-
use_setuptools()
6+
try:
7+
import setuptools
8+
except ImportError:
9+
from distribute_setup import use_setuptools
10+
use_setuptools()
811
from setuptools import setup, Extension
912

1013
if not hasattr(sys, "hexversion") or sys.hexversion < 0x02040000:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.