Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove v1 portions of backend/native and ipex #10187

Merged
merged 5 commits into from Jun 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion build-support/bin/release.sh
Expand Up @@ -150,7 +150,6 @@ function execute_packaged_pants_with_internal_backends() {
--pythonpath="['pants-plugins/src/python']" \
--backend-packages="[\
'pants.backend.jvm',\
'pants.backend.native',\
'pants.backend.python',\
'pants.cache',\
'internal_backend.repositories',\
Expand Down
7 changes: 0 additions & 7 deletions examples/3rdparty/BUILD

This file was deleted.

40 changes: 0 additions & 40 deletions examples/3rdparty/python/BUILD

This file was deleted.

1 change: 0 additions & 1 deletion examples/3rdparty/python/requirements.txt

This file was deleted.

9 changes: 0 additions & 9 deletions examples/src/python/example/BUILD
Expand Up @@ -6,7 +6,6 @@ target(
dependencies = [
':hello_directory',
':pants_publish_plugin_directory',
':tensorflow_custom_op_directory',
],
)

Expand All @@ -19,11 +18,3 @@ files(
name='pants_publish_plugin_directory',
sources=['pants_publish_plugin/**/*'],
)

files(
name='tensorflow_custom_op_directory',
sources=['tensorflow_custom_op/**/*'],
dependencies = [
'examples/3rdparty:python_directory',
],
)
57 changes: 0 additions & 57 deletions examples/src/python/example/tensorflow_custom_op/BUILD

This file was deleted.

17 changes: 0 additions & 17 deletions examples/src/python/example/tensorflow_custom_op/README.md

This file was deleted.

Empty file.
11 changes: 0 additions & 11 deletions examples/src/python/example/tensorflow_custom_op/setup.py

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

45 changes: 0 additions & 45 deletions examples/src/python/example/tensorflow_custom_op/zero_out_op.cpp

This file was deleted.

10 changes: 0 additions & 10 deletions examples/tests/python/example_test/BUILD
Expand Up @@ -5,20 +5,10 @@ target(
name = 'all_directories',
dependencies = [
':hello_directory',
':tensorflow_custom_op_directory',
],
)

files(
name = 'hello_directory',
sources = ['hello/**/*'],
)

files(
name = 'tensorflow_custom_op_directory',
sources = ['tensorflow_custom_op/**/*'],
dependencies = [
'examples/3rdparty:python_directory',
'examples/src/python/example:tensorflow_custom_op_directory',
],
)
9 changes: 0 additions & 9 deletions examples/tests/python/example_test/tensorflow_custom_op/BUILD

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions pants.toml
Expand Up @@ -29,7 +29,6 @@ backend_packages.add = [
]
backend_packages2.add = [
"pants.backend.awslambda.python",
"pants.backend.native",
"pants.backend.python",
"pants.backend.python.lint.black",
"pants.backend.python.lint.docformatter",
Expand Down Expand Up @@ -163,19 +162,5 @@ timeout_default = 60
[test.pytest]
timeout_default = 60

[native-build-step.cpp-compile-settings]
# TensorFlow 1.13 on python 3.7 specifically uses a newer C++ ABI than any other TensorFlow release,
# so in this repo's CI we override this option to avoid using the previous ABI for our python 3.7
# testing by setting PANTS_NATIVE_BUILD_STEP_CPP_COMPILE_SETTINGS_DEFAULT_COMPILER_OPTION_SETS="[]"
# in the environment.
default_compiler_option_sets = ['glibcxx_use_old_abi']
# TensorFlow custom operators cannot be built against the C++11 ABI yet: see
# https://www.tensorflow.org/guide/extend/op.
compiler_option_sets_enabled_args = "{'glibcxx_use_old_abi': ['-D_GLIBCXX_USE_CXX11_ABI=0']}"
compiler_option_sets_disabled_args = "{'glibcxx_use_old_abi': ['-D_GLIBCXX_USE_CXX11_ABI=1']}"

[libc]
enable_libc_search = true

[sourcefile-validation]
config = "@build-support/regexes/config.yaml"
4 changes: 0 additions & 4 deletions pants.travis-ci.toml
Expand Up @@ -28,7 +28,3 @@ timeout_maximum = 590

[pytest]
# NB: We don't set a max test timeout for v2, because tests run concurrently.

[libc]
# Currently, we only need to search for a libc installation to test the native toolchain.
enable_libc_search = true
9 changes: 0 additions & 9 deletions src/python/pants/backend/native/BUILD
@@ -1,4 +1,3 @@
# coding=utf-8
# Copyright 2018 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

Expand All @@ -7,14 +6,6 @@ python_library(
'src/python/pants/backend/native/config',
'src/python/pants/backend/native/subsystems',
'src/python/pants/backend/native/subsystems/binaries',
'src/python/pants/backend/native/targets',
'src/python/pants/backend/native/tasks',
'src/python/pants/build_graph',
'src/python/pants/engine:addresses',
'src/python/pants/engine:target',
'src/python/pants/goal:task_registrar',
'src/python/pants/util:collections',
'src/python/pants/util:frozendict',
],
tags = {"partially_type_checked"},
)