[PACKAGING] Added MANIFEST.in and some symlinks for better packaging
This commit is contained in:
committed by
Philippe Tillet
parent
ce4a4728f5
commit
435acbf585
1
python/MANIFEST.in
Normal file
1
python/MANIFEST.in
Normal file
@@ -0,0 +1 @@
|
|||||||
|
graft src
|
@@ -82,19 +82,19 @@ class CMakeBuild(build_ext):
|
|||||||
self.distribution.get_version())
|
self.distribution.get_version())
|
||||||
if not os.path.exists(self.build_temp):
|
if not os.path.exists(self.build_temp):
|
||||||
os.makedirs(self.build_temp)
|
os.makedirs(self.build_temp)
|
||||||
sourcedir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
|
sourcedir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'src'))
|
||||||
subprocess.check_call(['cmake', sourcedir] + cmake_args, cwd=self.build_temp, env=env)
|
subprocess.check_call(['cmake', sourcedir] + cmake_args, cwd=self.build_temp, env=env)
|
||||||
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
|
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
|
||||||
|
|
||||||
|
|
||||||
find_llvm()
|
find_llvm()
|
||||||
|
|
||||||
directories = [x[0] for x in os.walk(os.path.join(os.path.pardir, 'include'))]
|
directories = [x[0] for x in os.walk(os.path.join('src', 'include'))]
|
||||||
data = []
|
data = []
|
||||||
for d in directories:
|
for d in directories:
|
||||||
for htype in ['h', 'hpp']:
|
for htype in ['h', 'hpp']:
|
||||||
files = glob.glob(os.path.join(d, f'*.{htype}'), recursive=False)
|
files = glob.glob(os.path.join(d, f'*.{htype}'), recursive=False)
|
||||||
data += [os.path.relpath(f, os.path.pardir) for f in files]
|
data += [os.path.relpath(f, 'src') for f in files]
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='triton',
|
name='triton',
|
||||||
|
1
python/src/CMakeLists.txt
Symbolic link
1
python/src/CMakeLists.txt
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../CMakeLists.txt
|
1
python/src/cmake
Symbolic link
1
python/src/cmake
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../cmake/
|
1
python/src/include
Symbolic link
1
python/src/include
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../include/
|
1
python/src/lib
Symbolic link
1
python/src/lib
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../lib/
|
Reference in New Issue
Block a user