Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Bug Fix for basicpackage #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

stumitchell
Copy link

Hi I have been finding that the basic-package example does not work as it should.

I have found that the package_dir directive in setup.py_tmpl is incorrect. I have removed this declaration and changed the unit_test to run
$python setup.py --xxxxx

In the tmp directory rather than

$python temp_dir/setup.py --xxxxx

I have noticed that setup.py scripts in general do not behave well when not run in their directory.

Stu

PS have not checked with namespace packages yet

# Test egg_info can be run
proc = subprocess.Popen(
[sys.executable, setup, 'egg_info'],
shell=False,
stdout=subprocess.PIPE)
stdout=subprocess.PIPE,
cwd=tmp.path)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run setup.py in the tmp.path directory rather than
tmp.path/setup.py

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant