Changeset 2179
- Timestamp:
- 05/24/11 12:03:43 (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r2166 r2179 22 22 return "" 23 23 24 moduledir = distutils.sysconfig.get_python_lib() 25 26 if sys.platform.startswith('linux') and platform.architecture()[0] == '64bit': 27 # hack to install into /usr/lib64 if scons is in the 32bit /usr/lib/ 28 if moduledir.startswith("/usr/lib/"): 29 moduledir = moduledir.replace("lib", "lib64") 24 def get_moduledir(prefix="/usr/local"): 25 moduledir = distutils.sysconfig.get_python_lib(1,0, prefix) 26 if sys.platform.startswith('linux') \ 27 and platform.architecture()[0] == '64bit' \ 28 and platform.dist()[0].lower() not in ['debian', 'ubuntu']: 29 # hack to install into /usr/lib64 if scons is in the 32bit /usr/lib/ 30 if moduledir.startswith("/usr"): 31 moduledir = moduledir.replace("lib", "lib64") 32 return moduledir 30 33 31 34 EnsureSConsVersion(1,0,0) … … 38 41 "The root installation path", 39 42 distutils.sysconfig.PREFIX), 40 PathVariable("moduledir",41 42 moduledir),43 ("moduledir", 44 "The python module path (site-packages))", 45 None), 43 46 PathVariable("casacoreroot", "The location of casacore", 44 47 "/usr/local"), … … 186 189 if conf.env["alma"]: 187 190 conf.env.Append(CPPFLAGS=['-DUSE_ALMA']) 191 if not conf.env.get("moduledir"): 192 mdir = get_moduledir(conf.env.get("prefix")) 193 if env["PLATFORM"] == "darwin": 194 mdir = distutils.sysconfig.get_python_lib(1,0) 195 conf.env["moduledir"] = mdir 188 196 env = conf.Finish() 189 197 190 env["version"] = "3.1. 0"198 env["version"] = "3.1.x" 191 199 192 200 if env['mode'] == 'release': … … 195 203 env.Append(CCFLAGS=["-O2"]) 196 204 else: 197 env.Append(CCFLAGS=["-g", "-W all"])205 env.Append(CCFLAGS=["-g", "-W", "-Wall"]) 198 206 199 207 # Export for SConscript files … … 203 211 env.SConscript("external-alma/SConscript") 204 212 # build library 205 so = env.SConscript("src/SConscript", build_dir="build", duplicate=0)213 so = env.SConscript("src/SConscript", variant_dir="build", duplicate=0) 206 214 # test module import, to see if there are unresolved symbols 207 215 def test_module(target,source,env): … … 243 251 # make binary distribution 244 252 if len(env["makedist"]): 245 env["stagedir"] = "asap-%s -%s" % (env["version"], env["makedist"])253 env["stagedir"] = "asap-%s" % (env["version"]) 246 254 env.Command('Staging distribution for archive in %s' % env["stagedir"], 247 255 '', env.MessageAction) 248 st0 =env.QInstall("$stagedir/asap", [so, env.SGlob("python/*.py")] )256 env.QInstall("$stagedir/asap", [so, env.SGlob("python/*.py")] ) 249 257 env.QInstall("$stagedir/bin", ["bin/asap", "bin/asap_update_data"]) 250 258 env.QInstall("$stagedir", ["packaging/setup.py"]) 259 env.QInstall("$stagedir/debian", env.SGlob("packaging/debian/*") ) 251 260 env.QInstall("$stagedir/asap/data", "share/ipythonrc-asap") 252 261 env.QInstall("$stagedir/asap/data", "share/ipy_user_conf.py") … … 261 270 env.Command("No data tables available. Use 'asap_update_data' after install", 262 271 '', env.MessageAction) 263 arch = env.Archiver(os.path.join("dist",env["stagedir"]), 272 arch = env.Archiver(os.path.join("dist", 273 env["stagedir"]+"_"+env["makedist"]), 264 274 env["stagedir"]) 265 env.AddPostAction(arch, Delete("$stagedir"))275 # env.AddPostAction(arch, Delete("$stagedir")) 266 276 267 277 if env["apps"]: -
trunk/packaging/debian/control
r2166 r2179 10 10 Package: asap 11 11 Architecture: any 12 Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-matplotlib (>= 0.99.1), libboost-python1.34.1, ipython (>= 0.8), python-numpy (>= 1.3), 13 libatlas3gf-base, libblas3gf, liblapack3gf, libgfortran3, libstdc++6 12 Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-matplotlib (>= 0.99.1), libboost-python1.34.1, ipython (>= 0.8), python-numpy (>= 1.3),libatlas3gf-base, libblas3gf, liblapack3gf, libgfortran3, libstdc++6 14 13 Description: The ATNF Spectral-line Analysis Package 15 14 Blah blah
Note:
See TracChangeset
for help on using the changeset viewer.