blob: 01bff7222d78372d67a2d70b0cbadc82f15d9c78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- setup.py.orig 2010-04-02 08:54:57.681058076 +0000
+++ setup.py 2010-04-03 09:17:30.479619709 +0000
@@ -38,25 +38,11 @@
else:
SAGE_VERSION = os.environ['SAGE_VERSION']
-SITE_PACKAGES = '%s/lib/python/site-packages/'%SAGE_LOCAL
-if not os.path.exists(SITE_PACKAGES):
- SITE_PACKAGES = '%s/lib/python2.5/site-packages/'%SAGE_LOCAL
- if not os.path.exists(SITE_PACKAGES):
- SITE_PACKAGES = '%s/lib/python2.4/site-packages/'%SAGE_LOCAL
- if not os.path.exists(SITE_PACKAGES) and os.environ.has_key('SAGE_DEBIAN'):
- SITE_PACKAGES = '%s/lib/python2.5/site-packages/'%SAGE_LOCAL
- os.system('mkdir -p "%s"'%SITE_PACKAGES)
- if not os.path.exists(SITE_PACKAGES):
- raise RuntimeError, "Unable to find site-packages directory (see setup.py file in sage python code)."
+SITE_PACKAGES = 'build'
if not os.path.exists('build/sage'):
os.makedirs('build/sage')
-sage_link = SITE_PACKAGES + '/sage'
-if not os.path.islink(sage_link) or not os.path.exists(sage_link):
- os.system('rm -rf "%s"'%sage_link)
- os.system('cd %s; ln -sf ../../../../devel/sage/build/sage .'%SITE_PACKAGES)
-
include_dirs = ['%s/include'%SAGE_LOCAL, \
'%s/include/csage'%SAGE_LOCAL, \
## this is included, but doesn't actually exist
|