Skip to content

Commit b63b38d

Browse files
authored
Merge branch 'master' into nirizr/basicblocks
2 parents cea0681 + 4799117 commit b63b38d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

setup.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def get_requirements(fname):
2525
return open(fname).readlines()
2626

2727

28-
def build_setup(name, package_name, version_path, package_base,
28+
def build_setup(package_base, package_name, version_path,
2929
package_data=None, script_args=None):
3030
if package_data is None:
3131
package_data = {}
@@ -35,13 +35,14 @@ def build_setup(name, package_name, version_path, package_base,
3535
requirements_path = os.path.join(base_path, package_base, "requirements.txt")
3636
if os.path.exists(requirements_path):
3737
install_requires = get_requirements(requirements_path)
38+
# include requirementst.txt as part of package
3839
if package_base not in package_data:
3940
package_data[package_base] = []
4041
package_data[package_base].append('requirements.txt')
4142
else:
4243
install_requires = []
4344

44-
test_requirements_path = os.path.join(base_path, "tests", name,
45+
test_requirements_path = os.path.join(base_path, "tests", package_base,
4546
"requirements.txt")
4647
extras_require = {}
4748
if os.path.exists(test_requirements_path):
@@ -73,19 +74,17 @@ def build_setup(name, package_name, version_path, package_base,
7374

7475

7576
def build_setup_server(script_args=None):
76-
build_setup(name='server',
77+
build_setup(package_base='server',
7778
package_name='rematch-server',
7879
version_path='./',
79-
package_base='server',
8080
script_args=script_args)
8181

8282

8383
def build_setup_idaplugin(script_args=None):
8484
package_data = {'idaplugin/rematch': ['images/*']}
85-
build_setup(name='idaplugin',
85+
build_setup(package_base='idaplugin',
8686
package_name='rematch-idaplugin',
8787
version_path='rematch',
88-
package_base='idaplugin',
8988
package_data=package_data,
9089
script_args=script_args)
9190

0 commit comments

Comments
 (0)