Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Oct 15, 2023
1 parent 1d78daa commit 0ff15be
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions pythran/tests/test_distutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,33 +123,33 @@ def test_setup_bdist_install2(self):
self.assertIsNotNone(demo_so)
shutil.rmtree(dist_path)

def test_setup_build3(self):
check_call([python, 'setup.py', 'build'],
cwd=os.path.join(cwd, 'test_distutils_numpy'))

base = os.path.join(cwd, 'test_distutils_numpy', 'demo_install3',)
libdir = os.path.join(base, 'lib')
lib64dir = os.path.join(base, 'lib64')

local_env = os.environ.copy()
local_env['PYTHONPATH'] = os.pathsep.join((
os.path.join(lib64dir, python_version,
'site-packages'),
os.path.join(libdir, python_version,
'site-packages'),
local_env.get('PYTHONPATH', ''),
))

check_call([python, 'setup.py', 'install', '--prefix=demo_install3'],
cwd=os.path.join(cwd, 'test_distutils_numpy'),
env=local_env)

check_call([python, '-c', 'import demo3.a'],
cwd=cwd, env=local_env)
check_call([python, 'setup.py', 'clean'],
cwd=os.path.join(cwd, 'test_distutils_numpy'))
shutil.rmtree(os.path.join(cwd, 'test_distutils_numpy', 'demo_install3'))
shutil.rmtree(os.path.join(cwd, 'test_distutils_numpy', 'build'))
#def test_setup_build3(self):
# check_call([python, 'setup.py', 'build'],
# cwd=os.path.join(cwd, 'test_distutils_numpy'))

# base = os.path.join(cwd, 'test_distutils_numpy', 'demo_install3',)
# libdir = os.path.join(base, 'lib')
# lib64dir = os.path.join(base, 'lib64')

# local_env = os.environ.copy()
# local_env['PYTHONPATH'] = os.pathsep.join((
# os.path.join(lib64dir, python_version,
# 'site-packages'),
# os.path.join(libdir, python_version,
# 'site-packages'),
# local_env.get('PYTHONPATH', ''),
# ))

# check_call([python, 'setup.py', 'install', '--prefix=demo_install3'],
# cwd=os.path.join(cwd, 'test_distutils_numpy'),
# env=local_env)

# check_call([python, '-c', 'import demo3.a'],
# cwd=cwd, env=local_env)
# check_call([python, 'setup.py', 'clean'],
# cwd=os.path.join(cwd, 'test_distutils_numpy'))
# shutil.rmtree(os.path.join(cwd, 'test_distutils_numpy', 'demo_install3'))
# shutil.rmtree(os.path.join(cwd, 'test_distutils_numpy', 'build'))

def test_setup_sdist_install3(self):
check_call([python, 'setup.py', 'sdist', "--dist-dir=sdist3"],
Expand Down

0 comments on commit 0ff15be

Please sign in to comment.