Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyopencl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pyopencl
Commits
73e64468
Commit
73e64468
authored
14 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Warn about setuptools conflict.
parent
2f7bf6b4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aksetup_helper.py
+26
-0
26 additions, 0 deletions
aksetup_helper.py
with
26 additions
and
0 deletions
aksetup_helper.py
+
26
−
0
View file @
73e64468
...
...
@@ -2,8 +2,34 @@
import
distribute_setup
distribute_setup
.
use_setuptools
()
import
setuptools
from
setuptools
import
Extension
if
'
distribute
'
not
in
setuptools
.
__file__
:
print
"
-------------------------------------------------------------------------
"
print
"
Setuptools conflict detected.
"
print
"
-------------------------------------------------------------------------
"
print
"
When I imported setuptools, I did not get the distribute version of
"
print
"
setuptools, which is troubling--this package really wants to be used
"
print
"
with distribute rather than the old setuptools package. More than likely,
"
print
"
you have both distribute and setuptools installed, which is bad.
"
print
print
"
See this page for more information:
"
print
"
http://wiki.tiker.net/DistributeVsSetuptools
"
print
"
-------------------------------------------------------------------------
"
print
"
I will continue after a short while, fingers crossed.
"
print
"
-------------------------------------------------------------------------
"
delay
=
10
from
time
import
sleep
import
sys
while
delay
:
sys
.
stdout
.
write
(
"
Continuing in %d seconds...
\r
"
%
delay
)
sys
.
stdout
.
flush
()
delay
-=
1
sleep
(
1
)
def
setup
(
*
args
,
**
kwargs
):
from
setuptools
import
setup
import
traceback
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment