-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: setup.py does not allow equal filenames in *different* directories #9415
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
Conversation
continue | ||
|
||
# XXX | ||
if 'ujson' in f: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't remove ujson from this as these are part of the src/ujson/lib
dir.
maybe directly specify ALL of the *.c files by dir and filename (or just dir) for the exclusions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f
is this context is the filename (only). So the ujson
conditional doesn't do anything since those filenames are already part of the list.
I thought about that but didn't want to break the way it worked before. So you are saying that all excluded files should be referred to by their project root relative path? e.g. src/ujson/lib/ultrajsondec.c
. I believe directories should be allowed for exclusion also.
Edited: directory example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ujson
conditional also does nothing because none of the filenames in src/ujson/lib
have ujson
in them.
you could write tests for So kind of +/- 0 on this. |
@jreback gotcha. thanks for the input on testing. |
4bfe635
to
e23c586
Compare
'pandas/src/parser/tokenizer.c', | ||
'pandas/src/parser/io.c', | ||
'pandas/src/ujson/python/ujson.c', | ||
'pandas/src/ujson/python/objToJSON.c', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is much more explicit which is good
e23c586
to
8805910
Compare
BUG: setup.py does not allow equal filenames in *different* directories
@blbradley thanks for this |
@jreback That was the easy one. 😏 |
Is it possible to write tests for setup.py?
Setup
and put this in your
setup.py
's ext_data:Before PR
python setup.py build_ext --inplace rm -rf pandas/period.c python setup.py build_ext --inplace python setup.py clean ls -l pandas/period.c # -rw-rw-r-- 1 brandon brandon 48253 Feb 4 15:27 pandas/period.c
period.c
still exists after cleaning.After PR
python setup.py build_ext --inplace rm -rf pandas/period.c python setup.py build_ext --inplace python setup.py clean ls -l pandas/period.c # ls: cannot access pandas/period.c: No such file or directory