equal
deleted
inserted
replaced
1378 |
1378 |
1379 env['HOME'] = pwd.getpwuid(os.getuid()).pw_dir |
1379 env['HOME'] = pwd.getpwuid(os.getuid()).pw_dir |
1380 |
1380 |
1381 cargocmd = ['cargo', 'rustc', '--release'] |
1381 cargocmd = ['cargo', 'rustc', '--release'] |
1382 |
1382 |
1383 feature_flags = [] |
1383 feature_flags = ['python3'] |
1384 |
1384 |
1385 cargocmd.append('--no-default-features') |
1385 cargocmd.append('--no-default-features') |
1386 if sys.version_info[0] == 2: |
|
1387 feature_flags.append('python27') |
|
1388 elif sys.version_info[0] == 3: |
|
1389 feature_flags.append('python3') |
|
1390 |
1386 |
1391 rust_features = env.get("HG_RUST_FEATURES") |
1387 rust_features = env.get("HG_RUST_FEATURES") |
1392 if rust_features: |
1388 if rust_features: |
1393 feature_flags.append(rust_features) |
1389 feature_flags.append(rust_features) |
1394 |
1390 |