| 298 |
} |
} |
| 299 |
|
|
| 300 |
# 3) Add python-support dependency depending on what we found |
# 3) Add python-support dependency depending on what we found |
| 301 |
if (-d "$tmp/usr/share/python-support") { |
if (-d "$tmp/usr/share/python-support") { |
| 302 |
# Namespace packages were introduced in 0.7.1 |
if (`find $tmp/usr/share/python-support -name .noinit`) { |
| 303 |
addsubstvar($package, "python:Depends", "python-support (>= 0.7.1)"); |
# Excluding namespace packages, introduced in 0.8.5 |
| 304 |
} |
addsubstvar($package, "python:Depends", "python-support (>= 0.8.5)"); |
| 305 |
|
} else { |
| 306 |
|
# Latest non-detectable feature: namespace packages in 0.7.1 |
| 307 |
|
addsubstvar($package, "python:Depends", "python-support (>= 0.7.1)"); |
| 308 |
|
} |
| 309 |
|
} |
| 310 |
|
|
| 311 |
# 4) Look for python scripts |
# 4) Look for python scripts |
| 312 |
find sub { |
find sub { |
| 313 |
return unless -f and -x; |
return unless -f and -x; |